PDA

View Full Version : [ubuntu] Encrypt separate /home partition



newboyo
January 11th, 2011, 02:00 AM
Hi all,

This is a problem I've been trying to solve for a long time. I'd like to -
1. divide my HDD into separate partitions for Win7, /, ~ and swap.
2. install 10.4/10.10 such that ~ is encrypted.

While I can partition and install 10.4/10.10, encrypting the separate ~ has me foxed.

Any suggestions for an intermediate newbie would be most appreciated.

Rgds

New

Hegh
January 11th, 2011, 03:49 AM
I don't know if the standard desktop install CD gives the option, but the alternate install CD asks you whether to encrypt your home directory as part of the installation.

It will basically create an encrypted filesystem image file which is then mounted as your home directory; upon login, it is mounted and your password is used to decrypt the key that keeps it safe. On logout, it is unmounted and becomes unaccessible without the key.

newboyo
January 11th, 2011, 05:15 AM
Thanks for your reply. Would it allow for a separate ~ and /. My existing install clubbed ~ and / together in one partition, which is what I'd like to avoid.

Hegh
January 11th, 2011, 01:28 PM
It will allow that, but you will need to manually partition your drive, as the auto-partitioner does not separate home from / for some reason.

When partitioning, I suggest a layout like this:

1G: /boot
2x RAM: swap
20G: /
Rest: /home

If you're feeling ambitious, and you're using the alternate installer, go with LVM. It will allow you to easily (with the command line) shift space around between the partitions afterwards.

newboyo
January 12th, 2011, 12:20 AM
Thanks very much indeed.