Re: file system copying nightmare
In article <[🔎] 19980208184901.61633@yallara.cs.rmit.edu.au>,
Hamish Moffatt <hamish@debian.org> 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.
They are not ignored - you are asking both tar and cp _explicitly_ to
copy /mnt and /proc, because of the '*'. If anything was mounted _under_
/mnt or /proc, that would not be copied.
Try:
cp -ax / /mnt
or
( cd /; tar clf - . ) | ( cd /mnt; tar xvf - )
Mike.
--
Miquel van Smoorenburg | The dyslexic, agnostic, insomniac lay in his bed
miquels@cistron.nl | awake all night wondering if there is a doG
--
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: