Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there something I should be taking in to account when moving an encrypted home directory to a new drive? Is it just enough to rsync the contents away, edit fstab etc?

share|improve this question

1 Answer 1

up vote 0 down vote accepted

What I would do:

  • Be sure to have no user logged when doing the copy, so that encrypted directories are not mounted.
  • Copy the whole /home/, as there is a /home/.ecryptfs which I think contains all the encrypted data.
  • As root, run rsync -av /home/ /other/disk/home/ in order to preserve all file attributes.
share|improve this answer
    
In the end I tried to remove the encryption and then just move and re-enable the encryption. Which didn't go so well so I just reinstalled Ubuntu and used a backup. One thing which I wasn't so sure was that the encryptfs makes a hidden mount (if I'm correct), wasn't sure if just moving all the files would be enough. –  Guu Aug 20 '12 at 10:56

Your Answer

 
discard

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.