Linux.com

Home Learn Linux Linux Answers Applications How do I switch distro and keep everything?
Answers
  • Accepted Answer

    The easiest way for you to change between distributions without losing your data would be to plan before you install. By creating /home on it's own parittion, during any future distro changes opt to not wipe the entire disk and keep your /home directory in tact. That said, it sounds like you didn't do that.
    You can keep your data a couple different ways. If you have another Linux system (even a Windows system booted using a livecd/liveusb) you can tar your /home and rsync it to the other system and later rsync it back. Rsync uses ssh protocol as does scp/sftp, so you'd only need to get a disk mounted and an ssh server started.
    Another option would be to use a livecd and mount your currect Linux partition, assuming everything except swap is on one / (root) partition. Delete all the directories other than the home directory once and then during install, tell the new distro's installer to use the partition without doing a format. Your home directory and /home/ will still be in-tact. However your user's UID (number your username maps to) may be different after your new install unless you specify it to match when it creates your first user. You can find out your current user's UID by typing id in a terminal or using your system's gui tool for user management.

    Answered by tdr
    2 years ago
    0 1
  • Thanks a million! THAT is MUCH easier than either typing it all in or even "import / export" of some fashion. Thanks again!
    Rev Lou

    Answered by Rev Lou
    2 years ago
    0 0
Similar Questions Found
Questions from category Applications

Upcoming Linux Foundation Courses

  1. LFD312 Developing Applications For Linux
    05 Jan » 09 Jan - Virtual
    Details
  2. LFS220 Linux System Administration
    05 Jan » 08 Jan - Virtual
    Details
  3. LFD331 Developing Linux Device Drivers
    12 Jan » 16 Jan - Virtual
    Details

View All Upcoming Courses

Community Answers - Search


Who we are ?

The Linux Foundation is a non-profit consortium dedicated to the growth of Linux.

More About the foundation...

Frequent Questions

Join / Linux Training / Board