Created
February 18, 2011 17:05
-
-
Save luisuribe/834000 to your computer and use it in GitHub Desktop.
Encrypt home partition
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apt-get install cryptsetup | |
| cryptsetup luksFormat /dev/sda5 | |
| cryptsetup luksOpen /dev/sda5 home | |
| mkfs.ext3 /dev/mapper/home | |
| echo "home /dev/sda5 none luks" >> /etc/crypttab | |
| echo "/dev/mapper/home /home ext3 defaults 0 2" >> /etc/fstab | |
| update-initramfs -u -k all | |
| reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment