LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   dd cannot read hdd track 0? (https://www.linuxquestions.org/questions/slackware-14/dd-cannot-read-hdd-track-0-a-849703/)

stf92 12-11-2010 08:22 PM

dd cannot read hdd track 0?
 
Hi:
Can dd read cylinder 0, head 0 of the hard disk? It seems as if he can't. When I do
Code:

dd if=/dev/sda bs=1 | hexdump -C | more
I think it begins with track 1 and not track 0. Thanks.

wildwizard 12-11-2010 08:36 PM

Quote:

Originally Posted by stf92 (Post 4188369)
I think it begins with track 1 and not track 0. Thanks.

What makes you think that?

What you think of heads, cylinders and sectors has little to do with the way the data is stored on a modern (the last 10 years) hard disk drive.

stf92 12-11-2010 09:21 PM

"What makes you think that?"

I was wrong. When if=/hda, dd reads the LILO boot record, located at track 0, sector 0.

If you read lilo's man page, you'll be able to see sectors can still be addressed by CHS (as well as by LBA, of course). About the actual physical construction I do not know.


All times are GMT -5. The time now is 02:19 PM.