LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-19-2019, 03:41 PM   #1
Caltrop
Member
 
Registered: Jul 2017
Location: Indiana, US
Distribution: Mint Mate
Posts: 64

Rep: Reputation: Disabled
Shared Stuff


I am wanting to install several distributions.

I have used Mint for a couple of years & want to try something else.

I will multi-boot as usual with Win10.
I will still have my Mint partition.
But I will be adding other partitions for other distributions.

What I want is to share stuff between distributions.
I have the '/home' directory figured out; partition with mount point.
But I want to add other stuff to that partition.
/home
/tmp
/var
etc...

I figured out how to edit '/etc/fstab' to mount those other directories instead of making a lot of partitions.

The BIG QUESTION is can '/usr', with all the applications, be put on that share partition and used by other distributions.

If not, I will have to install the same software for each distribution I Test Drive.
 
Old 06-19-2019, 03:58 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,857

Rep: Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851
does not usr need lib and other dir as support to apps at times? some apps slip stuff in share dirs. /usr/share and /usr/local/share

Last edited by BW-userx; 06-19-2019 at 04:00 PM.
 
Old 06-19-2019, 05:37 PM   #3
Caltrop
Member
 
Registered: Jul 2017
Location: Indiana, US
Distribution: Mint Mate
Posts: 64

Original Poster
Rep: Reputation: Disabled
I am putting '/home' on a separate partition to share across Linux Distributions.

I desire to put other things on this partition as well as described.

The directory I question is '/usr' and all the sub-directories it has.
I would like to share this across distributions.

But as with many of my Linux questions I will just have to try it...
 
Old 06-19-2019, 05:59 PM   #4
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,857

Rep: Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851
let me know how it goes, because I do not think it possible. you'd be mixing distros a lot of stuff might get screwed up. but yeah, I'm past that type of experimental stage, or I'd might do it myself just to see what I see.
 
Old 06-19-2019, 07:36 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,071
Blog Entries: 25

Rep: Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263Reputation: 4263
Sharing /home among different distributions can lead to trouble because of conflicts among the various distros' configuration files (the hidden "dot" files). It is, to not coin a phrase, asking for trouble.

One course of action would be to create a subdirectory under one of the various "homes" and link to it from the other "homes." You will, natch, have to tinker with the permissions and sharing on the data folder to ensure that all the various "homes" will be able to access it.

Alternatively, you can create a separate partition strictly to serve as the repository of the data to wish be accessible from the various "homes" and link to it. Actually, this might be the preferable alternative.
 
Old 06-19-2019, 09:32 PM   #6
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 5,894

Rep: Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365Reputation: 1365
Quote:
Originally Posted by Caltrop View Post
I am putting '/home' on a separate partition to share across Linux Distributions.
/home, yes. But as others pointed out you may find some problems with dot files.
I have worked in a number of environments where /home is shared over many different systems via nfs: Debian, Red Hat Linux (predating RHEL), AIX, Solaris etc.

However you might find it simplest to give each OS it's own /home, but have a separate /data partition that you can use to store files that you want access to from each OS.

Quote:
Originally Posted by Caltrop View Post
I desire to put other things on this partition as well as described.

The directory I question is '/usr' and all the sub-directories it has.
I would like to share this across distributions.
No! /usr is where a large fraction of the operating system resides.

Evo2.
 
Old 06-19-2019, 09:42 PM   #7
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware 14.2 current / ArcoLinux / Void Linux
Posts: 8,857

Rep: Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851Reputation: 1851
if you do set up a separate data partition. Make sure your group name is same and GID match for all users. if you use the same user name then do the same to the user UID and name as well. this helps get past the permissions for each separate distro / user to give access to everything in that data partition without having to say set permissions to 775,776,777.

Last edited by BW-userx; 06-20-2019 at 07:07 AM.
 
Old 06-20-2019, 09:02 AM   #8
hazel
Senior Member
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 3,042
Blog Entries: 8

Rep: Reputation: 1597Reputation: 1597Reputation: 1597Reputation: 1597Reputation: 1597Reputation: 1597Reputation: 1597Reputation: 1597Reputation: 1597Reputation: 1597Reputation: 1597
I've been doing this for years and it works very well. Distro-specific configuration files go into /home/$USER, data files into /home/data. But you certainly can't do it for /usr because that contains a lot of distro-specific stuff. You can share /usr between different machines running the same distro, but not between different distros.

You might be interested in looking at Bedrock Linux. It allows you to mix bits of different distros together.

Last edited by hazel; 06-20-2019 at 09:04 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Urgent !!! rpm: error while loading shared libraries: libelf.so.1: cannot open shared tinaa Linux - Software 5 12-02-2008 03:19 PM
shared library stuff/installing php5 on old box dla-nor Linux - Software 1 05-11-2007 07:03 PM
Help move gcc stuff into shared root for diskless node GUIPenguin Linux - General 0 03-20-2006 09:09 AM
When installing new stuff in suse 9.1, do you uninstall old stuff first? randon SUSE / openSUSE 1 12-25-2004 04:37 PM
linux init error in loading shared shared libraries akaran Linux - Software 1 05-28-2003 04:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration