Linux - GeneralThis 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
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.
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?
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?
Distribution: Lots of distros in the past, now Linux Mint
Posts: 748
Rep:
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.
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
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.