Re: Copying one hard drive to another
Osamu Aoki wrote:
>
> I am just curious :-) (No flames against cpio)
>
> 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, and dd dosen't deal with different
> > partition sizes. In general dd is bad due to bad blocks. Many
> > new disks remap out bad blocks, but they still can develop over
> > time and not be mapped out by the HD's internal controller.
>
> 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.
--
| Bryan Andersen | bryan@visi.com | http://www.nerdvest.com |
| Buzzwords are like annoying little flies that deserve to be swatted. |
| -Bryan Andersen |
Reply to: