bug-coreutils
[Top][All Lists]
Advanced

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

Re: Using DD to write to a specific LBA (converting LBA to offset, bloc


From: Phillip Susi
Subject: Re: Using DD to write to a specific LBA (converting LBA to offset, blocksize, count)
Date: Thu, 05 Jan 2006 10:17:48 -0500
User-agent: Thunderbird 1.5 (Windows/20051201)

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
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-coreutils






reply via email to

[Prev in Thread] Current Thread [Next in Thread]