Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My /home directory is about 200 GB and encrypted. I need to reinstall Ubuntu 12.04 (fresh install) to fix some problems and and concerned that I might lose access or have to format /home during the installation. Is it easy and possible to reinstall without losing /home?

What should I keep in mind in order to preserve the directory and be able to decrypt it after re-installation?

share|improve this question
Please specify the way you encrypted your /home volume. Popular ways are 'ecryptfs' and using 'dm-crypt' (Luks). Or explain how you've set it up in the first place. – gertvdijk Sep 11 '12 at 19:31
I simply ticked the encryption option when installing 12.04 when I initially installed it. Looks ecryptfs in that case... – Sander Sep 14 '12 at 19:12

If your /homeis on a separate partition, then when you install make sure that you don't format that partition.

I'm not sure if the installer will try to mess with the partition, so the safest thing would be to make a copy of /home (from the Live CD using either dd or cp -a) and then restoring that copy after the reinstall. You'll also need to make sure that your user information in /etc/passwd is the same before and after the reinstall.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.