Common /home partition for 2 flavors of Linux

Asked by Jeffrey

I have installed PCLinux 2007 on /dev/sda1 (4GB) partition followed by /dev/sda5 (2GB)which is a swap partition then I have installed Ubuntu 7.04 on /dev/sda3 (4GB) - what I would like to do is have a common /home folder of both - Is it possible and how do I do that? I have ample free space after these partitions since I have a 80 GB drive.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cesare Tirabassi (norsetto) said :
#1

In principle, yes, it is possible; I don't know if it is a good idea though.
The problem is that there could be some "system" file in your user directory that could be used by both systems with random results.
In any case, if you want to try, set up a partition with /home and add it to your fstab file(s).

Revision history for this message
Jeffrey (jeff0stella) said :
#2

Please can you give it to me step by step so that I do not blunder, I am not very sure if I know how to do what you suggested.

Revision history for this message
Jim Hutchinson (jphutch) said :
#3

I would agree with Cesare that it's not a very good idea. I did this with two versions of Ubuntu and things got rather messed up. I would suggest you set up a /home for each (or just leave / and /home on the same partition as in a normal install) and make a separate shared partition for your files. That way the system files that are stored in /home won't get written by one os and then the other. I would also suggest a bit more than 4gb for each os. I think 8-10gb would give you room to breathe and you would still have a good amount of space for the shared storage. Just a suggestion.

Revision history for this message
Bhavani Shankar (bhavi) said :
#4

yes.. Min of 10 GB for / and /home and min of twice the size of physical memory for swap partition space for real smooth running of appswould be a good idea.. What jim and cesare told was dead right.. I did this with mandriva and Ubuntu edgy and got sucked up...:)

Revision history for this message
Jeffrey (jeff0stella) said :
#5

How do I add a /home partition to an already partitioned drive? Will it create any problems to do this?

Revision history for this message
Cesare Tirabassi (norsetto) said :
#6

First of all you have to make a new partition, unless you have one already.
You can use for instance gparted to do this (I would actually recommend a CLI tool like sfdisk or parted, but then this might not be appropriate for you).
Then follow the instructions of this link which summarise quite clearly what you need to do:

http://ubuntu.wordpress.com/2006/01/29/move-home-to-its-own-partition/

And YES this is a dangerous operation that can make you loose all your data or even your complete installation, so be very careful and if you do not feel confortable, don't do it.

Can you help with this problem?

Provide an answer of your own, or ask Jeffrey for more information if necessary.

To post a message you must log in.