changing /home directory to another partition
i just installed knoppix to my hd. my partitions look like this:
/dev/hda5/ ext3
/dev/hda6/ swap
/dev/hda7/ ext3
my intention was for hda7 to be my /home directory, as i was told it is good to have it seperate from the main linux partition. but knoppix automatically made my home folder in hda5.
how do i go about changing this?
Re: changing /home directory to another partition
First boot with your knoppix-CD, because I don't now how Linux reacts if you move /home while it is running.
Then mount your root-Partition (cd into it) and move /home somewhere else (e.g. /home_save). Now type 'mkdir home', 'mount /dev/hda7 home' and move your directorys from /home_save to /home.
The last step is to edit /etc/fstab and add the following line:
/dev/hda7 /home ext3 defaults 1 2
There are probably easier ways, but I think that this should work.
/home directory regeneration
I am also attempting to move my home directory to a different partition. I'm able to successfully fix fstab. But, the original home directory won't die. I delete and it regenerates the home directory on the next boot. So, I'm left with two home directories with identiical files and thus the same problem. If I delete a user's folder from the original home directory, then it deletes from the new home directory also (on a seperate partition). Is there a knoppix configuration I've missed?