Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Recently set up root encryption with a couple of LVM volumes inside one LUKS volume, and I am just a little confused as to how I would go about getting it to automatically unlock using a keyfile stored on a USB flash drive, I presume I would have to put the drive in the fstab inside my initramfs (if there is one), and add a hook for USB device support.

But I digress, essentially, I want to know what I have to do to enable my LUKS volume (containing all of my partitions sans /boot) to unlock using a keyfile stored on a USB flash drive, rather than a manually entered passphrase.

share|improve this question
    
Do you want to boot from the USB or just store the keyfile in it? –  Jawa Jun 7 '10 at 7:09
1  
guessing it's just the keyfile –  hbdgaf Jan 25 '11 at 23:00
1  
Sorry to post on a topic, but the arch linux wiki contains an extensive article on it including using a USB drive to store the key file on. wiki.archlinux.org/index.php/System_Encryption_with_LUKS –  cjh Feb 9 '11 at 2:37
add comment

1 Answer

solved on ubuntu...might require a little tweaking for debian, but you get the idea http://ubuntuforums.org/showthread.php?t=843571

note you wouldn't need the mmc options added to ramdisk as he did in that tutorial since usb should already be loaded anyway...if it isn't you might need to add that module instead

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.