Just installed a ssd drive with 16.04 how can i point Ubuntu to the old drive for home folder with all my files?
Asked
Active
Viewed 1.1k times
1 Answers
4
First use lsblk to find the device id of your old drive. It sill be something like sdb or sda. Now mount it at /home for eg:
sudo mount /dev/sdb1 /home
Now using sudo blkid, note the uuid of your old drive (UUID will be a very long string such as an0246cg-2kb2-6e8f-ae26-2355691e325b)
Open /etc/fstab in your favorite editor, for eg: sudo nano /etc/fstab and add the following at the end.
UUID=<noted number from above> /home ext4 defaults 0 2
Make sure to edit, if necessary, the ext4 to match the file system in your old drive.
Ron
- 20,938