2007-06-22

fedora 7 encrypt a partition

# Encrypt /home
umount /home
$ cryptsetup --verbose --verify-passphrase luksFormat /dev/sda3

WARNING!
========
This will overwrite data on /dev/sda3 irrevocably.

Are you sure? (Type uppercase yes): YES
Enter LUKS passphrase:
Verify passphrase:
Command successful.
$ cryptsetup luksOpen /dev/sda3 /home
$ mkfs.ext3 -j /dev/mapper/home
$ cat /etc/cryptab
home /dev/sda3 none
$ grep home /etc/fstab
#LABEL=/home        /home      ext3    defaults     1 2
/dev/mapper/home /home ext3 defaults 1 2

No comments: