How to do a hexdump of first track of HDD?

Posted by Daniel Gratz on Super User See other posts from Super User or by Daniel Gratz
Published on 2011-06-29T15:25:07Z Indexed on 2011/06/29 16:25 UTC
Read the original article Hit count: 313

Filed under:
|
|
|

How would i do a hexdump in Ubuntu for the first track of a HDD?

I am looking for a winhex-esque output if that makes sense. The first track has 63 sectors, each 512 bytes long. I tried

dd if=/dev/sda bs=1 count=512 | hexdump -C

but that only gave me what appears to be the MBR, or first sector of the HDD. I guess i am confused about what bs and count should be. Bs means how many bytes to display and count is how many multiples of bs? Thanks!

© Super User or respective owner

Related posts about linux

Related posts about ubuntu