Take the 2-minute tour ×

Reading another question on here it made me curious if it's possible to actually read the contents of the mbr. As I understand it, there's a certain area at the very front of the partition that lists this information. I'm curious if it's sort of like an ini file or some sort of script that runs and tells the computer what it needs to know about where to boot from and other information like sectors, heads, cylinders that's important. I don't know much about what would be in it, but I thought it'd be interesting to learn more about the specifics.

share|improve this question
Which Windows version? –  avirk Nov 26 '12 at 16:51
microsoft windows 7 –  Codezilla Nov 26 '12 at 16:55
scopr.com/ftpsites/ftp.symantec.com/public/english_us_canada/… see if that tool can help you. –  avirk Nov 26 '12 at 16:57
perfect, thanks! –  Codezilla Nov 26 '12 at 17:00
add comment

1 Answer

up vote 1 down vote accepted

On a Unix-type system (Linux, MacOS, etc), you simply read from the hard drive's character device (/dev/sda perhaps), and access the MBR that way. On Windows you could get a windows version of the dd program and use that to look at the bytes you are interested in.

Now, as to what's in the MBR, you might want to look at the Wikipedia page for a beginning. Hint: No, it's not a script.

share|improve this answer
Windows would be the preferred way but I have a suse vm I'm going to try your idea on. –  Codezilla Nov 26 '12 at 16:29
@Codezilla - A virtual machine wouldn't be much use except to look at the virtual hdd's master boot record. –  Ramhound Nov 26 '12 at 17:06
Ya, but it might actually be interesting to see what that looks like too compared to a normal install. –  Codezilla Nov 26 '12 at 17:09
add comment

Your Answer


