Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving a mount point

Status
Not open for further replies.

mufka

ISP
Dec 18, 2000
587
US
Currently I have one IDE hard drive in my RedHat 6.1 box. It's partitioned into / /home and /var. I need to add more space to the /home. I'd like to add a new drive. If I do, how do I move /home. Do I tar it up and blow it onto the new drive. Is there a step by step for this? When do I edit the fstab? Should I tar it to someplace else, edit the fstab to get rid of the current /home, then fdisk the new drive for /home then un-tar it? Once that's done, how can I reuse the free space on the old drive? How would I do it if I wanted to do the / partition?

I'm sure there's a doc that I need to be pointed to.

Thanks

 
If you had a Logical Volume Manager installed you could just extend the partition to the new drive, but in your case, the best thing would be to just tar up all the files you want to backup and cp them the another partition, than fdisk /dev/hda and delete the /home partion, then create another partition name(anything), reboot. When you add your new disk, the system will auto detect it, than you can fdisk it and re-create the /home partition.

Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top