2 distros with 1 /home [SOLVED]

All Gurus once were Newbies
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Please stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions prefer the other forums within the support section.
Before you post please read how to get help
Post Reply
bigBuckets
Level 3
Level 3
Posts: 171
Joined: Mon Mar 01, 2010 9:10 pm

2 distros with 1 /home [SOLVED]

Post by bigBuckets »

I'd like to dual boot LM9 Main, with Ubuntu Lucid. The question is, can they share a /home directory on a separate partition? Will the Package Manager see the applications in both distros?

I wouldn't mind solely updating in Mint and editing the menus as needed in Lucid if needed.

thanks!
Last edited by bigBuckets on Sat Jun 12, 2010 3:56 am, edited 1 time in total.
Cyberdyne Systems Model 101
piratesmack
Level 5
Level 5
Posts: 694
Joined: Mon May 26, 2008 3:08 pm

Re: 2 distros with 1 /home

Post by piratesmack »

It's possible.

I recommend using different usernames for each distro when sharing a /home partition. That way your settings for each distro will be stored in separate locations.
Will the Package Manager see the applications in both distros?
No, the /home folder doesn't contain any information about installed packages.
I wouldn't mind solely updating in Mint and editing the menus as needed in Lucid if needed.
Hmm... Sharing a /home wouldn't allow you to do that.
bigBuckets
Level 3
Level 3
Posts: 171
Joined: Mon Mar 01, 2010 9:10 pm

Re: 2 distros with 1 /home

Post by bigBuckets »

Cool, thanks for the info. I forgot that apps are in the /usr directory?

Keeping the same username might be what I'm after in this case, I'd like my Firefox add-ons/bookmarks and Thunderbird messages to be sync'd in both distros.
Cyberdyne Systems Model 101
User avatar
gn2
Level 5
Level 5
Posts: 885
Joined: Mon Nov 30, 2009 5:54 am
Location: Bonnie Scotland

Re: 2 distros with 1 /home

Post by gn2 »

bigBuckets wrote:Keeping the same username might be what I'm after in this case, I'd like my Firefox add-ons/bookmarks and Thunderbird messages to be sync'd in both distros.
If you use the same username for two distributions eventually you'll just end up with breakage.
You should be able to sync your Firefox and Thunderbird by copying your (hidden) Mozilla folders.
piratesmack
Level 5
Level 5
Posts: 694
Joined: Mon May 26, 2008 3:08 pm

Re: 2 distros with 1 /home

Post by piratesmack »

I think a symlink would work

Code: Select all

cd /home/USER2
mv .mozilla mozilla.bak
ln -s /home/USER1/.mozilla .mozilla
User avatar
Pierre
Level 20
Level 20
Posts: 11220
Joined: Fri Sep 05, 2008 5:33 am
Location: Perth, AU.

Re: 2 distros with 1 /home

Post by Pierre »

I recommend using different usernames for each distro when sharing a /home partition. That way your settings for each distro will be stored in separate locations.
that's just what I do.
I found that one O/S would allow the 1st letter to be capitalized,
whilst the other O/S would only allow all lowercase.
this gave two user-name directories in /home - which was all that mattered anyway.

otherwise two unique user-names would work too.

when the time to upgrade a O/S comes, a simple rename of the user-name <directory>
and a re-install of the new O/S & new user-name sets the thing up again, for use.
then copy anything needed from the <renamed> user-name <directory> to the new user-name <directory>, & away I go.
Has worked well, for some time & a few upgrades.

However, things like mail from TBird, should be kept to just one O/S,
as sharing this info gets complicated.
Image
Please edit your original post title to include [SOLVED] - when your problem is solved!
and DO LOOK at those Unanswered Topics - - you may be able to answer some!.
bigBuckets
Level 3
Level 3
Posts: 171
Joined: Mon Mar 01, 2010 9:10 pm

Re: 2 distros with 1 /home

Post by bigBuckets »

Thanks for replies everyone...

I had fresh installs so I wanted to see what would happen with the same username. I was bored, and I figured I'd learn something new -- yes, it definitely broke stuff. It turned my LM9 into some Lucid hybrid. I reinstalled both with unique usernames and all is well.
Cyberdyne Systems Model 101
bigBuckets
Level 3
Level 3
Posts: 171
Joined: Mon Mar 01, 2010 9:10 pm

Re: 2 distros with 1 /home

Post by bigBuckets »

One last question that came up...

At the root of the home partition I want to create Music and Video directories that are available to both Distros.
Since both distros have unique usernames, what owner and group can I set for the Music/Video directories so they'll be available to both distros?

is the following bad?

chown -R root:root /Video
chown -R root:root /Music
Cyberdyne Systems Model 101
piratesmack
Level 5
Level 5
Posts: 694
Joined: Mon May 26, 2008 3:08 pm

Re: 2 distros with 1 /home

Post by piratesmack »

The following will give everybody read/write/execute permissions to a directory:

Code: Select all

sudo chmod 777 /home/shared
SxFlare
Level 2
Level 2
Posts: 62
Joined: Sun Sep 13, 2009 4:48 am

Re: 2 distros with 1 /home

Post by SxFlare »

maybe have a partition with your data/music and (auto) mount it to one of your home subfolders when you log in?
I'm finding myself not bothering using separate home partitions and just a separate partition for data.
User avatar
markfiend
Level 4
Level 4
Posts: 310
Joined: Wed Apr 15, 2009 2:56 pm
Location: Leeds, UK

Re: 2 distros with 1 /home

Post by markfiend »

SxFlare wrote:maybe have a partition with your data/music and (auto) mount it to one of your home subfolders when you log in?
Yes that's what I do. I'm dual-booting Mint and Arch at the moment, sharing a /home partition and I have a separate data partition.

I have mark as my username on Mint and orac as my username on Arch. I have the fstab entries (different for each distro, obviously) mount the data partition to /home/mark/data when I'm in Mint and to /home/orac/data when I'm in Arch. No breakage has occurred so far...
Omnia mutantur, nihil interit.
Intio
Level 3
Level 3
Posts: 104
Joined: Tue Dec 01, 2009 2:16 pm

Re: 2 distros with 1 /home

Post by Intio »

Sounds as if everything worked out, but I though I'd plug the guys at mintcast.org since their latest episode dealt with this very issue.
Asus Eee 701 Netbook - 2GB OCZ RAM
Debian Edition - Xfce
bigBuckets
Level 3
Level 3
Posts: 171
Joined: Mon Mar 01, 2010 9:10 pm

Re: 2 distros with 1 /home

Post by bigBuckets »

Excellent info, many thanks!
Cyberdyne Systems Model 101
Post Reply

Return to “Newbie Questions”