How can I use a keyfile on a removable USB drive for my encrypted root in Debian?

Posted by naivem on Super User See other posts from Super User or by naivem
Published on 2010-06-06T22:57:25Z Indexed on 2010/06/06 23:02 UTC
Read the original article Hit count: 348

Filed under:
|
|
|

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.

© Super User or respective owner

Related posts about linux

Related posts about debian