Content of MBR in Linux : How to Read?

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

# dd if=/dev/hda of=mbr.bin bs=512 count=1
# 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.

Post a Comment

2 Comments

  1. I read your post, it contains some important and unique information about Linux Screen Command. The way of writing and making the things clear is a impressable to me. I have been searching for some decent stuff on the subject and got it. Thanking you for such a informative post.

    ReplyDelete
  2. Thanks for sharing the information. we would like to let you know Learn how to use screen commands to do some operations even if you lose your terminal session. Visit us on PS Command in Linux

    ReplyDelete