David Vasek wrote:
On Thu, 10 Sep 2009, Milan Prihoda wrote:
and now,
# dd if=/dev/rsd2c of=disk1.img bs=520

works for me :-)
Are you sure you are getting all 520 bytes from each sector and not 
only first 512 bytes? Can you verify it?
Regards,
David

Hi David,
it seems you're right.

# ls -l
total 33674624
-rw-r--r--  1 root  wheel  4308220800 Sep 11 03:08 disk-tg1.img
-rw-r--r--  1 root  wheel  4308220800 Sep 11 03:09 disk-tg2.img
-rw-r--r--  1 root  wheel  4308220800 Sep 11 03:11 disk-tg3.img
-rw-r--r--  1 root  wheel  4308220800 Sep 11 03:11 disk-tg6.img


# dmesg | grep sd2
sd2 at scsibus1 targ 1 lun 0: <IBMAS400, DFHSS4W, 4I4I> SCSI2 0/direct fixed
sd2: 4173MB, 520 bytes/sec, 8414494 sec total

so, i dumped 4308220800 bytes from each drive and:
4308220800/520 = 8285040
4308220800/512 = 8414493.75

Yes, it seems, I got only 512 bytes from each sector.

Milan Prihoda.

Reply via email to