Display master boot record

| May 8, 2011 | 0 Comments

To see the contents of your MBR, use this command:

1. dd if=/dev/hda of=mbr.bin bs=512 count=1
2. od -xa mbr.bin

The dd command, which needs to be run from root, reads the first 512 bytes from /dev/hda (the first Integrated Drive Electronics, or IDE drive) and writes them to the mbr.bin file. The od command prints the binary file in hex and ASCII formats.

Tags:

Category: Linux Administration

Leave a Reply

You must be logged in to post a comment.