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

Re: New Hard Drive




David Glass said:
> I have heard of using the tar command to do it, but I could never get it
> to work..

You could mount the new /home on /home.tmp and do something like this:

    cd /home && tar -cf - | ( cd /home.tmp && tar -pxvf - )

or you could just use rsync ("rsync -av /home/. /home.tmp/.").  (I
don't know how well rsync handles things other than files and symlinks
though...  Of course, that should be fine for /home.)

BTW, after you've copied...

    umount /home.tmp && mv -i /home /home.orig && mkdir /home

Then mount the new /home.  (Somewhere in there you'll probably need to
edit /etc/fstab...)

Steve
-- 
steve@silug.org           | Linux Users of Central Illinois
(618)398-7320             | Meetings the 4th Tuesday of every month
Steven Pritchard          | http://www.luci.org/ for more info

--
To unsubscribe, send email to majordomo@silug.org with
"unsubscribe silug-discuss" in the body.