Hard drive sectors are 512 bytes so use a bs of 512 and skip FF68 blocks. I'm not sure if dd will accept hex numbers, try prefixing it with a 0x ( the C convention for hex numbers ). Otherwise, convert the hex number to decimal.

Mark Perino wrote:
How does one convert from LBA to skip, blocksize, and count?

IE I want to write zero's over LBA 00FF68 through 00FF6F on a raw device
/dev/sda /dev/rhdisk4, /drv/C0T0D0S1, etc..

As an example under AIX I would like to use:

dd if=/dev/zero of=/dev/rhdisk4 skip=AAAA blocksize=BBBB count=CCCC

Where can I obtain the info to calculate AAAA, BBBB and CCCC?  Whatever
platform you can show me how to do the math on I can probably figure out
how to do this on AIX, Linux, Solaris, etc..

_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils




_______________________________________________
Bug-coreutils mailing list
Bug-coreutils@gnu.org
http://lists.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to