Change your Linux distribution and keep your data!

You can, of course copy your data to an external drive and restore from there. You can also not do that and keep your data on your internal disk.

The deal is such: you can do this only if you've partitioned your drive a certain way. The configuration I'm familiar with and use is 4 separate partitions, but as far as I know this can work on as few as 2. I'll go over the configuration with 4.

The 4 paritions you'll need are as such:

a screenshot of how I have my hard drive set up
Screenshot for reference!

Assuming your disk is set up as such, whenever you change your distribution of Linux, you can do the following:

Also! When you set up your new user account, keep your username the same as before!

I have noticed that deleting most of your dotfiles before doing this tends to help the situation after installing a new image. Keep the ones you know you want, but boot the rest. Some things might look weird or act weird on your new installation otherwise.

This article was written on 21/05/2024. If you have any thoughts, feel free to send me an email with them. Have a nice day!