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

Re: Copying one hard drive to another



Bryan Andersen <bryan@visi.com> writes:

> Osamu Aoki wrote:
> > 
> > On Mon, May 14, 2001 at 01:48:29PM -0500, Bryan Andersen wrote:
> > > > > copy /dev/hda1 to /dev/hdb1?
> > > >
> > > > mount /dev/hdb1 /mnt
> > > > cd <mountpoint of /dev/hda1>
> > > > find -xdev | cpio -padm /mnt
> > >
> > > This is the preferred method to copy partitions.  Some files don't
> > > copy properly with cp or tar
> > 
> > Hi can you enlighten us who uses "tar".  What files "tar" can not but
> > "cpio" can copy?  Are those arguments true for GNU tar?
> > 
> > pipe, softlink, hardlink, device nodes,...????
> 
> Named pipes and files with holes in their block allocation.

Gnu tar tries to handle the latter, according to the docs.

But I've had trouble with unpacking hardlinks with Gnu tar.  They seem
to be stored in the tar file including the leading /, so they can't
be unpacked with /usr mounted as /mnt/usr, say.

Dan

-- 
Dan Christensen
jdc+news@uwo.ca



Reply to: