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

  • h3ndrik@feddit.de
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    9 months ago

    get a filesystem ready on the new drive, mount it to /mnt/ (for example) and then cp -a everything. You could also use rsync. Or clone the entire harddrive with ‘dd’ and afterwards grow the partition if it’s a bigger hdd.

    If you just want to replace the OS you can do manual partitioning on install, keep your /home and just overwrite the OS. But do a backup anyways since mistakes do happen.

  • Rustmilian@lemmy.world
    link
    fedilink
    English
    arrow-up
    0
    ·
    edit-2
    9 months ago

    In what way? Like a home partition?
    Home should just be a folder you can copy over in most cases.
    If it’s a separate partition, most distros can just install to the other partitions without overwriting the home partition.

      • h3ndrik@feddit.de
        link
        fedilink
        arrow-up
        0
        ·
        edit-2
        9 months ago

        cp -a --preserve=all will help.

        I don’t have any SELinux permissions set in my home directory. Don’t know why I’d want that on a workstation.