[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Moving /home to new Parition



Assuming you have a /mnt/tmp directory, you can do:

mount /dev/hda12 /mnt/tmp
cp -dpR /home/* /mnt/tmp

Then you check that everything is on the right place, and that I have not
given you the wrong cp command (verify symlinks for example). Check also
that each file belongs to the right user and has the right permissions.

Then you can:

umount /mnt/tmp

If you are sure that everything is OK (do it at your own risk):
WARNING: It will ERASE *forever* your _old_ home directory.

rm -rf /home/*

And finally

mount /dev/hda12 /home

And you should be done :)



Missing things to do: Update your /etc/fstab file to make it include the
line for mounting /dev/hda12 into /home with the right parameters for
checking and so on.

Good luck!

	Antonio

On Fri, 24 Mar 2000, Dzuy M. Nguyen wrote:

> I mounted a new partition /hda12 and use the /home as the mountpoint.
> When I go:
> 
> mount /dev/hda12 /home
> 
> I end up with an empty directory.  How do I move the current contents 
> of my /home directory into the new mountpoint /home on /dev/hda12?
> 
> thanks.
> 


Reply to: