![]() |
![]() |
Permission to use these pages kindly granted by www.knoppix.net. These pages are a static version of those available at www.knoppix.net. Please check there for the latest information. Converted on 9/5/2003. Thanks to the many contributors to www.knoppix.net! |
This howto explains the procedure to move your existing /home from your Knoppix harddrive install (as in HdInstallHowTo) to a seperate partition. It does not remove any data from the existing /home it copies it to a seperate partition and then mounts your /home on the seperate partition upon reboot using the copied files.
You will need to have either a seperate existing partition or enough free space on your hard drive and the desire to go through the steps to resize an existing partition.
The method described here assumes you have already partitioned the hard drive and installed Knoppix, you must have an extra partition available and formated for the new /home.
hdax = current /home partition
hday = desired new /home partition
Change the x to the number of the partition of your current install change y to desired new /home partition.
Boot from your Knoppix CD.
Open a console window and mount the partitions.
sudo mount /dev/hdax /mnt/hdax
sudo mount /dev/hday /mnt/hday
Change to the Knoppix home directory.
cd /mnt/hdax/home
Copy the directories and preserve the file permissions to the new desired /home.
sudo cp -Rp * /mnt/hday/
Edit the fstab to mount the new /home on reboot (this uses vi you can use any editor you want).
sudo vi /mnt/hdax/etc/fstab
Add the line to actually mount the new /home.
/dev/hday /home auto rw,auto,user,exec 0 0
Save the file and re-boot.
You should now have your /home on the new partition. To check open a console and type mount and press enter, it will show you the mounts in use.
After re-booting and checking that you have your /home on the new partition you can boot the Knoppix CD again and remove your original knoppix /home if you want to.
Removing the original /home is not necessary but it does free up the space on the hard drive. If you decide to keep it you can at any time in the future comment out the line you added in the fstab and you will be able to boot to the original knoppix /home.