Skip to content

Instantly share code, notes, and snippets.

@luisuribe
Created February 18, 2011 17:05
Show Gist options
  • Select an option

  • Save luisuribe/834000 to your computer and use it in GitHub Desktop.

Select an option

Save luisuribe/834000 to your computer and use it in GitHub Desktop.
Encrypt home partition
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