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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need to move /home

Status
Not open for further replies.
Apr 24, 2003
164
CA
I have a server that does mail only the bulk of data is on /home this is mounted under / but when the server was built there was not a need to have a large hard drive... I have installed a second drive.. formated it etc. I need to be able to use this new drive as /home. Is it possible to just copy the current contents of /home to the new drive, rename /home to /oldhome. Then edit /etc/fstab ...reboot and go on with my life???

thanks,

Rory
 
Check your fstab, if your entry for home looks like this:

Code:
LABEL=/home    /home    ext3    defaults    1 2

You will need to unlabel your old partition and label the new one, or just change the first field to be the actual device of the new drive.
 
You may have to rename /home to /oldhome first or you'll have problems trying to create the new partition with that name. But I'm guessing you already figured that out. :)
 
Thanks guys I was successful... but it didn't go quite how I thought it would... What I had to do was mount the new drive and dump the contents of home to it (dont forget the switch to carry file attributes over, copying to the new drive will lose ownership and permission by default)... Rename /home to /oldhome... and created /home again on the root drive (empty) Edit /etc/fstab add a line to mount /home to the new drive and thats that.

Thanks for the help!!

Rory



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top