0

As per subject I'll install a fresh copy of Ubuntu 12.04 onto a new SSD.

My current home directory is already on another partition, on a different physical disk. Can I tell Ubuntu to point to that home directory and use existing profiles and passwords? Or do I have to re-create all users and passwords?

Thanks!

1 Answer 1

1

You can tell Ubuntu to point to that directory, and to use existing profiles and passwords.

The first step is to re-add the users to /etc/password, /etc/groups and /etc/shadow. If your setup is simple you might be able to simply copy the old files to the new box and keep the userid's. If you find this is not possible (because the userids are in use) you would create new users and then change the ownership of the home directories for the users.

There are a number of ways of dealing to the old home directories -

  1. You could simply move them to /home/USERNAME on the new box
  2. You create symlinks from /home/USERNAME on the new hard drive to their location on the old drive.
  3. You could modify the users home directory as specified in the /etc/password file to point to the old location.
2
  • So should I go for a simple copy and chown after I've installed the new setup?
    – Emanuele
    Dec 28, 2013 at 8:49
  • Yes. That would be my preferred option.
    – davidgo
    Dec 28, 2013 at 18:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .