LinuxQuestions.org
Help answer threads with 0 replies.
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 09-21-2008, 01:26 AM   #1
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 282

Rep: Reputation: 29
one home folder for more then one distro?


Ihave been installing a couple of different distros of linux, and am wondering if I could have one home folder for all the distros or would this create a problem?
 
Old 09-21-2008, 01:43 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Not a great idea, since your home stores a lot of application and environment settings
 
Old 09-21-2008, 01:44 AM   #3
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Yes and... yes.

You give /home it's own partition.
Tell subsequent installs that this is /home, but not to format it.

Trouble comes when you have different configurations on different distros, the hidden files will be different. An obvious case is when one distro uses KDE and another Gnome. The more similar the distros are, the less of a problem this is. But then - if the distros are so alike, why bother multi-booting?
 
Old 09-21-2008, 01:57 AM   #4
scott_R
Member
 
Registered: Jul 2003
Location: Brighton, Michigan, USA
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748

Rep: Reputation: 31
You can, and it might. Nice answer, huh?

It's been a while since I played with a lot of distros (late 90s), but it's entirely possible to share a /home directory (which wouldn't be a directory, but a separate partition, to keep it safe from formats and such), and often an advantage, as you've guessed. No sense having to mount extra partitions and have stuff spread all over the place. On the other hand, if you have a highly tweaked distribution, expected directories can be all over the place, and they wouldn't match up with the directories another distribution might look for, namely with those '.configuration' files in your home directory. A way around this would be to use different user names for distributions that cause problems, or stick with distributions of a certain pedigree (e.g. all Ubuntu based, all Redhat/Fedora based, etc.)

It can be a little extra work, you'll need to do some extra work using the 'custom install' portions of your installer/partitioner, such as tell it to use, but not to create the /home directory. And perhaps it might be a good idea to have a "main" distribution you use as your main system, and then create extra partitions exclusively for the other distros you're testing. That way even if you FUBAR the /home, you're not going to be dead in the water.

Mostly it'll take trial and error and lots of mistakes, but once you get the hang of it, it's a nice option to have, especially when you decide to move to a new "main" distribution, it can save a lot of work moving files around. Just don't expect it to be effortless and trouble free, because if you test a fair number of distributions you're going to have (usually minor, but annoying) issues here and there. Most distros are pretty decent about this, especially if they stick to the LSB (linux standard base) ideals, and put files in common places.

Hope this helps.
 
Old 09-21-2008, 08:08 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Better to have a shared data partition and then make links as appropriate into the /home directory for each distro.
 
Old 09-21-2008, 11:55 AM   #6
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 282

Original Poster
Rep: Reputation: 29
Smile

Quote:
Originally Posted by pixellany View Post
Better to have a shared data partition and then make links as appropriate into the /home directory for each distro.
Thank you for your replies

I am fairly new to this what do you mean by Data partition and is there instructions somewhere on how to do this?
 
Old 09-21-2008, 02:59 PM   #7
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Originally Posted by Shadowmeph View Post
Thank you for your replies

I am fairly new to this what do you mean by Data partition and is there instructions somewhere on how to do this?
Any partition can be used for data. This is what happens if you have just ONE partition, or if you have a separate /home partition.

"Data partition" = any partition which you decide to use only for data. Here is just one way to do it:

Create the partition---eg with fdisk or cfdisk
Create a filesystem (I use ext3 for everything**) using mkfs
Create a mount point in /mnt using mkdir
mount the new partition to the mount point
Link the mount point into your /home/username directory

Here's an example of the exact commands. (Username fred, data partition = /dev/sda6, mount point /mnt/data, link = Mydata)

Code:
su
mkdir /mnt/data
mkfs.ext3 /dev/sda6
mount /dev/sda6 /mnt/data
cd /home/fred
ln -s /mnt/data Mydata
Once you are happy with the setup, you can make the mounting permanent by adding an entry to /etc/fstab

**I use ext3 for all shared data partitions. On the rare ocassion that I boot into windows, I access the ext3 partitions using the ext2fsd driver.

Last edited by pixellany; 09-21-2008 at 03:07 PM. Reason: afterthought
 
Old 09-23-2008, 01:17 PM   #8
Shadowmeph
Member
 
Registered: May 2008
Location: West Coast Canada
Posts: 282

Original Poster
Rep: Reputation: 29
Quote:
Originally Posted by pixellany View Post
Any partition can be used for data. This is what happens if you have just ONE partition, or if you have a separate /home partition.

"Data partition" = any partition which you decide to use only for data. Here is just one way to do it:

Create the partition---eg with fdisk or cfdisk
Create a filesystem (I use ext3 for everything**) using mkfs
Create a mount point in /mnt using mkdir
mount the new partition to the mount point
Link the mount point into your /home/username directory

Here's an example of the exact commands. (Username fred, data partition = /dev/sda6, mount point /mnt/data, link = Mydata)

Code:
su
mkdir /mnt/data
mkfs.ext3 /dev/sda6
mount /dev/sda6 /mnt/data
cd /home/fred
ln -s /mnt/data Mydata
Once you are happy with the setup, you can make the mounting permanent by adding an entry to /etc/fstab

**I use ext3 for all shared data partitions. On the rare ocassion that I boot into windows, I access the ext3 partitions using the ext2fsd driver.
thanks for the instructions . Can you give me an example of something that you would put into the data folder?

Last edited by Shadowmeph; 09-23-2008 at 01:31 PM. Reason: Corrected some spelling
 
  


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
Home folder icon does not open home folder CiscoGeek Linux - Newbie 3 12-18-2006 07:00 AM
I can not open the user folder in home and write in a shared folder jorge_ivan Linux - General 8 08-02-2006 11:28 AM
Folder Max Size and Limiting SSH access to home folder. Mefistofeles Linux - General 4 11-26-2005 02:09 PM
permissions difference between /home/..../folder and /root/folder darkleaf Linux - General 3 07-21-2005 05:23 PM

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

All times are GMT -5. The time now is 01:54 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