Encripted home with LUKS on Fedora 7
Friday, June 8th, 2007On my Fedora 7 Laptop i have separate logical volume for /home
To have it encrypted
- Backup /home
- Unmount /home
-
format logical volume as LUKS partition with (replace <lvname> with name of you logical volume reserved for “home”):
cryptsetup --verbose --verify-passphrase luksFormat /dev/mapper/<lvname>
- You will be asked for password
- Create mapping between logial volume and luks partion
cryptsetup luksOpen /dev/mapper/<lvname> crypthome
- You will be asked for password
- create /etc/crypttab file with following contents (replace <lvname> with name of you logical volume reserved for “home”):
crypthome /dev/mapper/<lvname>
- format crypthome
mkfs.ext3 /dev/mapper/crypthome
- edit fstab and replace <lvname> with crypthome
- test if you can mount partition
mount /home
- reboot
- You should be asked during boot for LUKS password for cryphome partition