Since /dev/hda5 is your root directory, you can't create a /home directory since it already exists. So make a /home-new directory and copy everything from /home to /home-new. Do this logged in as root without starting x windows. You might want to also enter init level 1 also. "init 1". This will put you into single user mode.
Then cd to the "/" directory and copy the files over.
cd /
cp -aR /home /home-new
The -a option is for "archive". This preserves the user:group and protection settings. I'm not certain which option you need to use to copy the links. I believe that the -a bit takes care of that.
After everything has copied, you can umount /dev/hda6. Then edit your /etc/fstab file to remove the line with the /home entry.
Lastly, "rmdir /home" and "mv /home-new /home". You should be set.
Last edited by jschiwal; 06-25-2006 at 07:26 AM.
|