Encrypted Home Directory PDF Print E-mail
Sunday, 17 December 2006
This article has been updated for Fedora 8.

This tutorial explains how to encrypt a partition on a hard drive, specifically the fourth partition on a hard drive that will contain the home directory. Keep in mind that the root directory, the tmp directory (if it is not on the same partiton as the root directory), and the swap partition would also have to be encrypted to ensure data privacy.
  • Initialize LUKS on the new partition for /home (sda4) with: cryptsetup --key-size 256 --verbose --verify-passphrase --cipher aes-cbc-essiv:sha256 luksFormat /dev/sda4
  • Start up the encrypted file-system with: cryptsetup luksOpen /dev/sda4 home
  • Format with: mke2fs -j /dev/mapper/home
  • Add a line to /etc/crypttab. For example: home    /dev/sda4    none    luks
  • Add a line for /home to /etc/fstab. For example: /dev/mapper/home    /home    ext3    defaults 1 2
  • Mount up the encrypted /home and copy data to it.
Last Updated ( Thursday, 22 November 2007 )
 
Main Menu
Home
Contact
Links
Portfolio
Search
Your Info
Support
Your Questions
Fedora Core
Microsoft Windows
Misc. Linux
SME Server
Login Form





Lost Password?
No account yet? Register
Statistics
Visitors: 73146