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.
that's because you're TELLING cp and tar to copy /mnt. * matches
everything, remember...so cp -af /* /mnt means copy everything in /
(including /mnt) to /mnt.
try just
cp -ax / /mnt
or
tar clvf - / | ( cd /mnt; tar xf - )
--
craig sanders
--
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: