O.K., I'm not telling you to do anything different from what WharfRat wants you to do.
I did something very similar to what you are trying to do a few weeks ago. I replaced my primary drive with an SSD. That primary drive had the / partition, the /home partition, and SWAP. I had a secondary drive that had some data stored on it.
When I re-installed Linux using the SSD for the / partition and SWAP, I made a /home/<username> directory on that secondary. I restored my backup /home/<username> to the secondary drive along with the original other data - all under what is now /home/<username>.
I checked the UUID for the new /home partition on the secondary drive, opened up /etc/fstab and made a line with the UUID and referenced /home in that line. Upon reboot, /home was successfully mounted using the correct UUID. When I look at the "Home" under Places in Dolphin, it shows all my data under /home/<username>.
This is what my /etc/fstab file looks like, now. I don't have the "before" view.
Code: Select all
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
# / was on /dev/sda2 during installation
UUID=a11e2d42-980f-411f-9c73-dab5ff616804 / ext4 errors=remount-ro 0 1
# /boot/efi was on /dev/sda1 during installation
UUID=E38A-9EC5 /boot/efi vfat umask=0077 0 1
# /home was on /dev/sdb1 during installation
UUID=09e6b59d-ce4c-4f26-a606-5351c3daf769 /home ext4 defaults 0 2
# swap was on /dev/sda3 during installation
UUID=8827d90e-1afe-4832-b99b-ea74570c42e4 none swap sw 0 0
(END)
And here are my drives
Code: Select all
john@john-Desktop:/var/lib/dpkg$ lsblk -f
NAME FSTYPE LABEL UUID MOUNTPOINT
sda
├─sda1 vfat E38A-9EC5 /boot/efi
├─sda2 ext4 a11e2d42-980f-411f-9c73-dab5ff616804 /
└─sda3 swap 8827d90e-1afe-4832-b99b-ea74570c42e4 [SWAP]
sdb
└─sdb1 ext4 09e6b59d-ce4c-4f26-a606-5351c3daf769 /home
sr0
I hope it's useful for you!