Can I move /home partition under root partition
I've feisty(/) installed in my pc. My HDD has one more free partition,
on which I want to install a different distro for evaluation.(so that partition will be formatted at regular interval) here's current hdd structure: sda1: ubuntu root(8 GB) sda2: swap (1 GB) sda3: ubuntu /home (125 GB) sda5(logical): reserved partition for distro testing (22 GB) but during evaluation I may download/create files in the second OS. So I want to store those files in one common partition. for that reason I want to convert that partition from "/home" to a common data partition. And home should be moved to "sda1" itself. My qustion: can i safely do this without loosing my settings for ubuntu? I don't want to share "sda3" as common home. I already tried that before. different distros overwrite software settings which is troublesome. |
I'm not 100% sure I understand what you want to do, but I think it's:
cp -a /home /home_save umount /home mv /home_save /home then edit /etc/fstab to remove the line that mounts /dev/sda3 on /home. |
Create a partition temporarily named /home-new, and then copy the contents of /home to it.
I think the command to use would be "sudo cp -dpR /home/* /home-new/". If you have links, check if they are OK. When you share a home directory, you can have problems with the ~/.kde/ or ~/.gnome2/ settings being changed. You can still share the /home partition. Use a different home directory for each partition. You don't even need to use a different username. You can change the location of your home directory when creating a user, or later using the "users & groups" config program of your distro, or directly by editing the home directory field in /etc/passwd. One thing to look out for, both ways is that the range of UIDs for regular users can differ between distro's. Mandrake & Red Hat start at 500. SuSE starts at 1000. You can change this behavior in the /etc/login.defs file: This is from SuSE 10.2 Code:
# You would want to do the same thing if you had an external mass storage drive with an ext3 or xfs or reiserfs filesystem. They you would have access regardless of which distro you booted to. |
Quote:
|
All times are GMT -5. The time now is 07:32 AM. |