Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
guessing it's just the keyfile – RobotHumans Jan 25 '11 at 23:00
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. – cjh Feb 9 '11 at 2:37

solved on ubuntu...might require a little tweaking for debian, but you get the idea

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .