According to Wikipedia, "disk signature" is a 32 bit value stored in MBR on bytes 440 - 443. According to fdisk, my "disk identifier" is 00043afc in hex:

# fdisk -lu /dev/sda | grep identi
Disk identifier: 0x00043afc

However, I can not confirm this with dd:

# dd if=/dev/sda skip=439 bs=1 count=4 2>/dev/null | xxd -ps

Even if I check the entire MBR, I do not see the "disk identifier":

# dd if=/dev/sda bs=512 count=1 2>/dev/null | xxd -ps | grep 43a

Where is the "disk identifier" stored?


It appears that you found your answer with the first dd already. It's just in different endian order. Read the bytes (two-character hex sequences) reverse. And set the skip value to 440 instead of 439.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.