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

Re: Cloning disks with dd and netcat



Greetings!

On Tue, 27 Jul 2004 12:12:33 +0200 "David Ross" <davidro@zdata.co.za>
wrote:
> tty1[/]# nc -v -w 60 XXX.XXX.XXX.XXX 3333 < /dev/null | gzip -dc | dd
> of=/dev/hda bs=512 
> imgserver.whatever.co.za [XXX.XXX.XXX.XXX] 3333 (?) open
[...] 
> hda: read_intr: status=0x59 { DriveReady SeekComplete DataRequest
> Error}
> hda: read_intr: error=0x40 { UncorrectableError }, LBAsect=19528,
> sector=19528
> end_request: I/O error, dev 03:00 (hda), sector 19528
> dd: writing `/dev/hda': Input/output error 
> 19529+0 records in
> 19528+0 records out
> 9998336 bytes transferred in 9.226423 seconds (1083663 bytes/sec) 
> too many output retries : Broken pipe
[...]
> Obviously the first thing I did was swap the
> harddrive just in case the one in the new pc is faulty, but I get the
> same error. 


Obviously the problem is that DD cannot write (for whatever reason) to
/dev/hda - not a single byte.

Do you have any kind of BIOS-configurable write/virus protection
for that harddisc switched off? 

What happens if you do the partitioning manually and image the
partitions (/dev/hda1, /dev/hda2, ...) one-by-one instead of the
complete disc? Well, doing the partitioning manually, you could RSYNC
the server instead of DD+NETCATing, which probably is faster and fails
more gracefully.

Bye

Volker Tanger
ITK Security



Reply to: