Re: migrating slackwareOS to a new hard drive? Widgeteye wrote:
>
> On 2004-08-04, W <still@none.com> wrote:
> > In news:Pine.LNX.4.58.0408031001140.11811@worker.hunt bros.net, William
> > Hunt bitched and moaned:
> >> (5) use tar to copy live data from old mountpoints to new mountpoints.
> >> for example:
> >>
> >> OLDMNT=/
> >> NEWMNT=hdb2
> >> cd ${OLDMNT}
> >> tar --one-file-system -cpvf - . | ( cd ${NEWMNT} ; tar -xpf - )
> >
> > `tar` does not recreate /dev properly, the last time I looked.
> >
> >
>
> Maybe I do stuff wrong but I just go into the root directory of the old
> drive and do this, which works everytime BTW. In fact just did it last
> week.
>
> cd /
> cp -a * /newdrive
>
Make sure that you don't have any CDROMs mounted or they will get cpied
too!
jamess |