On Wed, 27 Jul 2005 20:24:46 -0400, Sean Higgins wrote:

> > Can anyone tell me if it's possible to move (or copy) the complete
> > contents of /boot located on /dev/hdb1 to /dev/hda2. If so would
> > anyone know the correct command so I pick up any hidden files ,etc.
> 
> One way to do it is to do the following:
> 
> mount -o ro /dev/hdb1 old
> mount /dev/hda1 new
> cd old
> tar cvf - * | tar xf -C ../new/

* doesn't match hidden files, so the copy will be incomplete.

My favourite method is: rsync -a old/ new/


-- 
Neil Bothwick

Therapy is expensive, popping bubble wrap is cheap! You choose.

Attachment: pgp7sr0nlVCP3.pgp
Description: PGP signature

Reply via email to