I have 2 HDD drives in my computer. At the moment second drive is mounted as
How can I move my user data from
Can I just move the data over there and then simply symlink it back?
If you want to just move your home directory i.e /home/your-username then simply copy your home directory to other partition and then use System->Administration->Users & Groups to open user settings dialog. Click on the keys icon to authenticate your self
After that select the user that you want to change and click properties, go to advanced tab
change the home directory to new directory i.e the directory that you copied to other partition.
Moving HOME from command line
To avoid side effects while working in a graphical environment we should perform all actions to move HOME from a terminal with Ctrl+Alt+F1.
Temporarily mount the new partition:
assuming /sdb1 is the new partition for HOME
Copy HOME to the new location:
We then may mount the new partition as HOME with
Make HOME permanent
We need to know the UUID of the new partition for the
Note or copy/paste the correct UUID to edit your
and add the following line at the end:
Take care to choose the appropriate filesystem here, e.g.
After a reboot your
Indeed. it is a great way to easily change the home directory location of a specific user. While reading the question, I was understanding that this would have been for the /home directory globally. In this case, you could create the partition on the other device, manually move all files there and then change the device for the mount point in /etc/fstab file itself
The official. detailed procedure here:
ok, the only way I found this would work is to create another user, give it admin authority, logoff the main id, logon with the new id and then use usermod command.
To do this through /etc/fstab add this line: