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

Re: Moving /home to new Parition



On Fri, Mar 24, 2000 at 11:51:25AM -0800, 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?

mount /dev/hda12 /mnt
cp -ra /home/* /mnt
umount /mnt
mv /home /oldhome  [paranoia setting = high]
[edit /etc/fstab to get /dev/hda12 to mount as /home]
mount -a

Should get you what you want.

-- 
Andrew Sullivan                                      Computer Services
<sullivana@bpl.on.ca>                        Burlington Public Library
+1 905 639 3611 x158                                   2331 New Street
                                   Burlington, Ontario, Canada L7R 1J4


Reply to: