Sharing the /home partition between two Linux distros?
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.
Sharing the /home partition between two Linux distros?
I am going to install on my computer two distros: one Arch-based (Manjaro), one Ubuntu-based. Both will have the XFCE desktop environment. My question is: can I share the /home directory between these two distros, or will I encounter problems?
The advantage for sharing is that I would have exactly the same desktop environment in the two distros, with the same settings. Also, the applications on the two distros will have the same settings. To me this sounds like a big plus.
yes and no. First they got a play nice together. I have Void Linux and Slackware running on the same home/user sharing fluxbox, and xfce configs. But when I tried to get Debian in on the action. It didn't want to play. being a selfish little brat I got rid of it. Mostly Fluxbox, seeings how I have more apps in Slack, then do the same where I go back to Void, all I do is run menu maker to update the menu when I am in either one, this is not a drawback of any kind.
Not having the same apps should not and has not been an issue with me in using either one, switching back and fourth between the two. XFCE4 sees what is in /usr/share/applications and loads them in the menu. Fluxbox I already went over.
just make sure you change everything in your home/user to the same UID as the other one. or you will not be able to log in one of them.
so check your UIDs before doing this to be sure if they do not already have the same then their is room to give them both the same UID. UID has to match between the more than one Linux OS, (maybe Solaris or other Unix based OS'e even)
as far as Arch and Ubuntututututu play nicely together. That might be a trial and error situation to find out.
I do forget what the actual problem Debian gave me. It did have something to do with getting the home partition (account and WM) to wrk well with each other, which was becoming a pain in my arse. Seeings I don't actually need 3 Linux distros. I opt out of it and stuck with 2.
actually, as long as neither OS is using the .xinit file to fire up stuff, then you should not have any conflict on that part of this type of setup.
you're just "cloning" DE/WM between the two is all.
why not, try it. if they both use the same desktop environment, and the config file syntax doesn't change between versions.
there might, however, be a few files that are very specific to the environment currently booted. i think the Xorg server has some sort of fingerprint files?
i think it will break sooner or later, and good luck hunting down the culprit when it does.
but from a common sense point of view i must say i'm 100% with the previous poster.
I've never understood the point of multi-booting 2+ Linux distros, especially when you just plan on having the same programs and settings on both of them. Why? If you're trying them out or want an isolated spot for testing or for a specific project, use a VM. It's easier, faster, more efficient, and if you screw something up it won't damage the host, unlike accidentally borking a partition, MBR, grub, etc. when setting up a multi-boot system.
I've never understood the point of multi-booting 2+ Linux distros, especially when you just plan on having the same programs and settings on both of them. Why?
I use the second distribution as a backup in the same way that a rescue DVD is used. Also when I install a new distribution or a new release of a distribution I install it over the older of my two distributions. That way I can upgrade at a leisurely pace without having a small crisis where I temporarily have a distribution which does not have everything working satisfactorily.
I am going to install on my computer two distros: one Arch-based (Manjaro), one Ubuntu-based. Both will have the XFCE desktop environment. My question is: can I share the /home directory between these two distros, or will I encounter problems?
That works most of the time. Where you will occasionally have problems is with the software configuration files that are stored in /home/user. You can run into conflicts between the configurations set up by the two different distributions.
I get around this potential problem by sharing /home/user/data and putting all of my personal data in /home/user/data. I do this for every user on my system except root i.e. every user has their own /home/user/data partition.
I played with this many years back, perhaps things are different now. With a lot of fiddling and lots of invested time I was able to make it happen, till updates in one OS would screw up settings for the other with different version(s) of the same packages, something like that, all I remember is updating would cause me to invest a lot more time.
As previously mentioned, I migrated to keeping data in a data partition. And because SSD drives are becoming the norm, there is more reason to keep data in the "Data" drive, to keep writing to the SSD to a minimum. Might be best to start getting into that habit now.
Windows 10 makes it easy to move your default save directories to the mechanical drive, just one click, of course it is best to use NTFS file system for the data drive if Windows is involved. Then, in your Linux, you delete your /home/user/Download folder, and soft link the Downloads folder in the data drive created by Windows to it. You can link all your folders in /home/user of all your many Linux to the same folders that Windows uses, including adding custom folders.
The advantage:
1: You don't risk upsetting user settings in the /home/user directory of each OS.
2: All your data is readily available from any OS, not spread out between many.
3: All your data is consolidated in one place, making it easier to do what most people fail to do, "BACK UP YOUR DATA"
4: You can shrink the size of your root partition if data is not stored within, making it easier to keep updated images of them in case you screw things up, avoiding having to reinstall, just paste the image, update it and make another image and carry on screwing it up without fear of loosing Data.
5: Even if you chose not to back up your operating systems, you won't come crying in these forums when you render it useless and want your data that you didn't back up yet.
I don't think you'll have problems with software configuration files. I had a home partition that was created with Fedora, then used with Debian, then with CentOS. If two distros have very different versions of the same program, that use different configuration files, then each one will use its own and ignore the other. But if funny things do happen, at least you'll know why!
Handbrake: I got two different versions - one each - they do not conflict with each other They chnaged the GUI in the newer one. But they both still pick up where I left off in my other distro.
If I am running it in one distro the settings stay the same when I use it in the different distro.
Just an example.
You should be ok, like I said if the two play nice together then .. learning experiences are good.
you may have problems if you have different applications/configuration or "anything" on the two desktops. And that may happen when you install something only here or there. There can be version conflicts too.
In case of any conflict (based on anything) you will not be able to go further....
I personally wouldn't do it, but if you're in an exploratory mood and don't mind regularly snapshotting your /home directory so that you can revert in case of problems, why don't you give it a go and let us know how you get on?
the only real thing is beer. Beyond that I have no idea.
Though I have not had any complete stops can't use that because my other distro is ver 6 and this one is ver 5 ... The programs are in your system side. Like what has been stated before. The only real conflits you MAY experience is whatever config files are in you home that may conflict with the other.
as a user of two distros sharing everything between them that I have installed on both, (as Slack has more installed on it then Void) I personally have not had any problems..
The problems I did have was way back when I first went against the norm (no two distros sharing same home because it will not work you will have problems DON'T DO IT people that kept telling me not to)
well I did it anyways, from what I learned in what works and what does not work. I have it working now on my laptop...
so to the negatives of life and think outside the box. truth is found in seeking it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.