Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am using Mint but I would like to try other distributions to see which I like best. Is it possible to replace Mint with say, Ubuntu, to see if I like it better without erasing all of my data?
The simple answer is to have a separate /home partition, and not format it during re-install. This avoids most (not all) problems, but may also introduce some "wrinkles".
Different distros will use different packages by default (mplayer, gphoto, ...) Some may use different versions of the same package - there may be differences in usage, maybe not.
As some-one who regularly uses different distros, I don't use shared /home except in special cases, but I do use shared data partition(s) - especially my photo collection. Maybe videos as well. Then I just install what I need to access them.
In order to move to using one, you will need to back up the data in your existing /home to external media (if it's not on external media, it's not a backup), do a "nuke-and-pave" install of Ubuntu, them restore the saved data.
I've been using a separate /home on all my bare-metal installs for several years. I second syg00's suggestion heartily.
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195
Rep:
The risk in using a shared /home (or installing and keeping /home) is that settings and config files often are not 100% compatible. Not between versions of the same distro and even less so between different distributions. I am sure this is also the reason that syg00 decided not to use a shared /home folder.
If you are smart, you store all your data and personal files in yet another partition or even better on an external drive with a good backup.
If you have all your data out of the home folder, it *is* possible to copy and tar your complete home folder and restore it if you go back to a previous distro.
My experience is that keeping the /home folder seldom leads to the desired results. And that installing a new distro alway requires configuration from the ground up. So you can equally well test it in a VM. Use Virtualbox.
I would never use a shared /home (that is, shared between two or more distros on a multi-boot computer). As jlinkels points out, that's asking for trouble.
I have encountered no difficulties in using a separate /home and changing distros. It's not something I've done often, but that computer over there (---->) has gone from Mint to Mageia to Debian with a separate home without issue.
If you want to be super careful, you can delete all the dot-config files, while keeping the other data, before installing that new distro.
To help ease problems like this, I have a multiple partition solution.
For example, let's say I were to start off with Linux Mint, then I would have three partitions mounted at /, /home and /home/data. The data partition holds all my documents, videos, photos etc. etc.
If I want to try out another distro on bare metal (as opposed to the excellent idea of setting one up in a virtual machine), I create two new partitions for /, and /home and then also mount /home/data in the new distro.
In this way, / is for each distro's system files, /home is for each distro's personal configuration files, and /home/data is a non-distro specific partition that I share amongst all my distros so that they can access the data files.
It sounds slightly complicated, but it keeps things nice and easy for me. In case you might have been wondering, the reason that the / and /home partitions are themselves separate is due to the way I image/backup my partitions for ease of file or partition rollback (a separate issue).
As another multi-distro on bare metal person, I'll offer another vote for a partition containing shared data, but with /home on the distro's partition. My twist is a single boot partition from which I chainload each distro's bootloader.
Install distro with boot partition mounted at /boot and grub in MBR
Unmount boot partition and remount some place convenient (I use /mnt/Boot)
Copy contents of /mnt/Boot to /boot
Forcibly Install grub in distro's partition
Edit boot partition's grub.cfg to chainload each distro's grub
From boot partition's grub.cfg:
Code:
### BEGIN /etc/grub.d/10_linux ###
menuentry 'GF27 on sda7' {
insmod part_msdos
insmod ext2
set root='hd0,msdos7'
chainloader +1
}
menuentry 'GF26 on sda8' {
insmod part_msdos
insmod ext2
set root='hd0,msdos8'
chainloader +1
}
menuentry 'GU1710 on sda5' {
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
chainloader +1
}
Shared /home among different distros is nothing but a mess in my experience. Better is a data partition structured like this - /data/$USER/(normal /home/$USER/folders). Then just symlink the /data/$USER/* into /home/$USER. No mixed settings, data stays the same. Easy peasy.
Last edited by jmgibson1981; 08-02-2017 at 04:47 PM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.