LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 03-31-2005, 03:33 PM   #1
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Rep: Reputation: 16
Sharing a /home partition!!


If i were to share a /home partition among FC3 and SUSE, what type of file type should i select for the /home partiton.
Whats the best method to share one /home partition between FC and SUSE.assuming that i have already mounted the FC3 on /home during installation and the i am going to install SUSE.
? 1. Should i mount suse on that /home partition during the installation OR
? 2. Should i just leave the /home and just specify root partition (/) and then after installation do something to add the /home ( say its on /dev/hda2) on the /etc/fstab ?
I would appriciate if anyone could help on this matter....

Thank you,
 
Old 03-31-2005, 03:58 PM   #2
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
I dunno, but I'd think sharing the whole home directory might get tricky, unless you are using different user id's on each distro. Home holds a lot of user specific settings in hidden files.

If you are using different ID's, just do as you thought...install SUSE and set the shared directories to mount on /home in your fstab.

I'd be interested to know if people actually use a proper shared "home" between distros with the same user ID's.

L
 
Old 03-31-2005, 04:30 PM   #3
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Original Poster
Rep: Reputation: 16
hehehe, i am having enaugh trouble using the same UID and trying to share the same home
So i'd think better use different id's cuz there is lot of conflict between the UID between the distributions.

But when editing fstab after installation do i just add a line in the SUSE fstab like this
Code:
/dev/hda2  /home  ext3  defaults 1 2
but will there be a problem with "/ext3", normally dosn't SUSE renames its partiton it installs and its file system type is something else other than /ext3 by default ?

Thanx for your advice,
Regards,
 
Old 03-31-2005, 04:37 PM   #4
lacerto
Member
 
Registered: Oct 2003
Location: South London
Distribution: Gentoo.
Posts: 297

Rep: Reputation: 30
By default SUSE uses the ReiserFS instead of ext3. Thats not to say you can't use ext3 if you prefer. Just change it during setup (in the partitioning section).

However, this does not affect what you put in the SUSE fstab - you just specify what
the fs type is that you are trying to mount.

/dev/hda2 /home ext3 defaults 1 2

EDIT: Not quite right before;-)

Last edited by lacerto; 04-01-2005 at 02:47 AM.
 
Old 03-31-2005, 04:49 PM   #5
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Original Poster
Rep: Reputation: 16
But if i have already used ext3 for /home when i first installed FC3 and the in the SUSE fstab i use ReiserFS, then will there be a conflict?

Cheers,
Regards,
 
Old 04-01-2005, 12:52 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
The home directory for a user is determined by what is in a field of the /etc/passwd file. The /home partition is a storage location for these directories, and could be on a central server or a NAS storage device.

One thing that you could do is to have seperate home directories for a user for each distribution, but have the documents and downloads subdirectories be links to common subdirectories.

To have full rights to these folders you would need to make sure that the user IDs and group IDs are the same. You would only want to do this for the same person, because then all of the directories would be readable by the user with that UID and GID.

So, for example, consider a user name in SuSE called Azzath-SuSE and a user name in FC3 called Azzath-FC3
Then there would be /home/Azzath-SuSE, /home/Azzath-FC3, /home/Azzath-SuSE/documents, /home/Azzath-SuSE/documents folders plus links
/home/Azzath-FC3/documents -> /home/Azzath-SuSE/documents
/home/Azzath-FC3/downloads -> /home/Azzath-SuSE/downloads

You also might want to change the numbers that users and groups start at. I think that FC has users start at 500 while SuSE starts from 1000, but this can be changed in the system configuration so that groups and users IDs occupy the same range of numbers.

An alternative is to have the UID of the two home folders unique, and to make both users members of the same group (GID) so that they have r/w access to a common documents folder.
For this you might have a documents folder located at /home/documents instead.
 
Old 04-01-2005, 04:17 PM   #7
Azzath
Member
 
Registered: Jan 2005
Location: Russia
Distribution: Mandrake, CentOS
Posts: 138

Original Poster
Rep: Reputation: 16
Thank you guys for all your lovely help....
For now i think i will use different home partitons for individual distributions.

Thanking again,
Kind regards,
 
  


Reply



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
sharing /home partition? greythorne Mandriva 5 04-05-2005 04:22 AM
Sharing home boombastic Fedora - Installation 1 10-16-2004 02:25 AM
Is it possible to have two distros sharing the same /home partition felicehome Linux - General 4 05-21-2004 12:27 PM
Partition Free Space - Move /home to the new partition gregkise Linux - General 5 12-16-2003 10:19 PM
Sharing a harddrive partition (NTFS) on Linux with Windows XP Home. squall14716 Linux - General 21 10-07-2003 05:06 PM

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

All times are GMT -5. The time now is 06:43 PM.

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
Open Source Consulting | Domain Registration