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

  • EdgeRunner@lemmy.dbzer0.com
    link
    fedilink
    arrow-up
    16
    ·
    11 months ago

    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.

    • blotz@lemmy.world
      link
      fedilink
      arrow-up
      9
      ·
      11 months ago

      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.