I bought a new NVMe M2 and want to use it as my /home partition.
Is it enough to copy the /home directory from my old ssd and adjust the fstab accordingly? After reboot the NVMe M2 should be recognized as /home.
My approach would be as follows:
Install NVMe M2
copy the home directory from ssd → NVMe M2
Update the UUID of the NVMe M2 in fstab
reboot
Or do I have a thought mistake?
I also have the complete home directory as a backup in an external drive
You will need to format the drive before you copy the data
Once you have all that done and are satisfied that it is working you will have a copy of the data hidden underneath the mount. You will want to clean that up.
But the most important thing is how you copy the data. Make sure you make an exact copy of the data. I would use rsync for that.
Something like sudo rsync -aAXHSv /home/ /mnt/newhome
Ok Thanks a lot. Now i know in any case what i should pay attention to.
I am copying the data again with the flags specified. If it works as it should be everything is ok, if not i reinstall EOS again. This is not a big deal, I have ~.config and ~.local as backup anyway.