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

I've read so many variables on what I'm trying to do, I thought it better to ask outright.

I've been through a few installs and upgrades of Ubuntu but never had my system (root) drive encrypted. Just found out about lvm and installed a fresh 12.4 alternate without touching my old and seperate /home folder (encrypted I'm sure, although accessible now with root privileges) on another SSD.

I encrypted the (new) /home during install. I am looking to combine the two /home folders and set up existing swap partition that lies on the old /home drive (as I removed the standard swap during install due to a lack of space on the root drive).

Can I do both actions with the lvm program?

share|improve this question
I think you're confusing LVM with LUKS and/or EcryptFS. The installer uses LVM with LUKS to do a full disk encryption, and EcryptFS to encrypt the home folder. Can you post the output of mount, sudo fdisk -l, sudo pvs and sudo lvs on your computer with the SSD connected and mounted? This will help us determine what your current situation is. – Flimm Nov 19 '12 at 20:33

Ubuntu use eCryptfs to encrypt /home.

The new /home and old home could be using different ciphers, keys and options. I don't think it is possible to merge the 2 logical volumes.

Anyway, you can do it manually by mounting the old home and use rsync to copy all files over to the new /home (data will be encrypted again using the ecryptfs options on the new /home), you can keep using the swap file on the old /home anyway, just edit the /etc/fstab

More on eCryptfs

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.