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

Re: file system copying nightmare



On Sun, 8 Feb 1998, Hamish Moffatt wrote:

: I'm having a nightmare trying to copy my root file system to its
: new home. If I mount the original as / and the new one as /mnt,
: both 
: 
: cp -ax /* /mnt
: 
: and 
: 
: ( cd /; tar clvf - * ) | ( cd /mnt; tar xf - )
: 
: attempt to copy /mnt anyway, and /proc too. ie, the -x and -l switches
: to cp and tar respectively appear to be ignored.
: 
: I would do it with the rescue disk, mounting the two partitions
: as /mnt and /mnt2, except that the rescue disk (poorly named?)
: seems to have a cut down cp with only -r, and no tar!
: 
: Any suggestions?

With the old root mounted at '/' and the new root mounted at '/mnt', do:
cd /
find . -xdev -print | cpio -padm /mnt

: 
: 
: thanks,
: Hamish
: -- 
: Hamish Moffatt, hamish@debian.org, hamish@rising.com.au, hmoffatt@mail.com
: Latest Debian packages at ftp://ftp.rising.com.au/pub/hamish. PGP#EFA6B9D5
: CCs of replies from mailing lists are welcome.   http://hamish.home.ml.org
: 

--
Nathan Norman
MidcoNet - 410 South Phillips Avenue - Sioux Falls, SD  57104
phone: (605) 334-4454 fax: (605) 335-1173
mailto://finn@midco.net   http://www.midco.net
PGP Key ID: 0xA33B86E9 - Public key available at keyservers
PGP Key fingerprint: CE03 10AF 3281 1858  9D32 C2AB 936D C472



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: