Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • Note: it would be easier to skip the umount and rmdir (and mv: which I think it cannot be done as intended). fstab and reboot will do it correctly without worrying about having no processes using home. Commented Apr 24 at 6:11
  • @GiacomoCatenazzi 1. the mv (or rsync) will work as described. 2. editing fstab and rebooting will result in the old home directory and everything in it being inaccessible until mounted somewhere (and still needing to be mv-ed/rsync-ed into the new home dir as above). And if a user tries to login while their own home dir is missing, they'll end up in / without write privs unless something like PAM mkhomedir is in use (and even that will only give them a new, empty + /etc/skel home dir). 3. linux is not windows, rebooting is rarely required. Commented Apr 24 at 7:59
  • Your (second) mv is trying to move mounting points, so probably copying from ssd to the old disk (but main partition). Or I miss something? -- and on big changes, a reboot may not be technically required, but it is still a good practice: discover problems earlier, and you know the cause, a thing you may forgot after 18 months, then a kernel security update requires a reboot. Commented Apr 24 at 8:33
  • I tried a lot! But I think maybe Linux Mint works differently, I can't archive what I need. So I reinstalled this time with correct partition. But, thankyou for your answer, this was the 1st time I asked questions online, and you gave me the answer. Commented Apr 25 at 16:11
  • @GiacomoCatenazzi yes, you're missing a lot. 1. the second mv is NOT moving a mount point. the mount point dir was unmounted and then deleted. mv /home.new /home is a simple rename after the old empty mount-point was deleted. 2. you've got the direction wrong, the files are being moved from the HDD (sda2 mounted as /home) to the NVME SSD (a directory called /home.new). 3. no, rebooting when it's not required is not "good practice", it's just personal preference. Sometimes it's necessary, those few cases are when you should reboot. Usually it's not. Commented Apr 26 at 11:03