On Monday 23 August 2004 01:02, Steve Lett wrote:
Hi all, Taking the advice on config of the new drive, etc. and have had some successful experiments. Before I finalize things, a few questions I'm still fuzzy on.
I'm setting up a new harddrive (hdb) and want to move all the user data (/home/jeepnut) to a separate drive from the system files. 1. when I partition hdb should I partition as a primary or as an extended partition. I'm unclear about what the difference is other than being able to define more than 4 logical partitions in an extended partition. Does it really matter if I use extended or primary for this partition?
If you're going to use the whole disk as /home then make it hdb1, a primary partition
I got into trouble once defining /home on the hdb drive. Once I did that, I no longer had access to the data in the /home folder on the hda drive. So I could not move things over to the new drive. So it occurs to me to make hdb have a different mount point, something other than /home. 2. when I define the partition, should I define the mount point as something like /UserFiles/JeepNut? or should I just make the mount point on hdb /JeepNut?
When you copy the old /home files, you mount it on a different directory. The steps are roughly like this 1. Log out all regular users 2. log in as root 3. Create partition hdb1 4. format the hdb1 partition 5. mkdir /newdrive 6. mount /dev/hdb1 /newdrive 7. cp -a /home/* /newdrive/ 8. mv /home /home.old 9. mkdir /home 10. umount /newdrive 11. mount /dev/hdb1 /home When you've verified that the home directories are all intact in your new setup, you can do 12. rm -rf /home.old