How can I migrate my existing /home/ directory to another drive?

Goku@lemmy.world to Linux@lemmy.ml – 31 points –

This was I can wipe the drive it's on and install a new OS without losing anything in /home/

10

You are viewing a single comment

I dont like the MV home. 😅

My advice :

  • login as root.
  • rsync -av /home, on the new disk.
  • fstab : comment the old home's line, don't delete, and copy it to change the identifier (path or uuid).
  • noob tips, add a new file in the new home.
  • login to check it is ok (with su - user), and check there is the new file.

You can now delete or keep it as a save.

the mv home is just renaming the folder so you can mount home in the same space. Rsync is probably better than cp but I didn't want to suggest tools that op doesn't have installed.

Oh ok I see why no use of rsync. Clever.

I've read your solution, OP, you can go. Good tuto written on mobile.