I'm installing a SSD and to save space I want to move my user folder to another drive, is there a way to do that?
Ubuntu – Moving home/user directory to another drive
home-directoryssdstorage
home-directoryssdstorage
I'm installing a SSD and to save space I want to move my user folder to another drive, is there a way to do that?
Best Answer
From Terminal type this:
which will allow you to temporarily mount the new partition, assuming /sdb1 as new partition for HOME.
This will copy HOME to new location.
This will mount the new partition as HOME and make sure all data is present.
This will unmount the new partion.
This deletes the old HOME.
To make HOME permanent you need to know the UUID of the new partition for the
fstab
entry. you can get that by giving command:Note down the UUID and use the same to change
fstab
.Now add the following at the end.
NOTE: You need to select the exact file system that was formatted (for example ext4 as chosen here).
Now you can restart your computer to see the new HOME.