Deleted File Recovery

Master Boot Record (MBR)

The Master Boot Record is made when the first partition is created the hard disk.

It is probably the most important data structure on the disk and is the first sector on every disk.

The location is always track (cylinder) 0, side (head) 0, and sector 1.

The Master Boot Record contains the partition table for the disk and a small amount of executable code. On x86-based computers, the executable code examines the partition table, and identifies the system partition.

The Master Boot Record then finds the location of the system's starting partition on the disk, and loads a copy of the partition's boot sector into memory. The Master Boot Record then transfers execution to executable code in the partition's boot sector.

Note!

Although there is a Master Boot Record on every hard disk, the executable code in the sector is used only if the disk is connected to an x86-based computer and the disk contains a system partition.

The figure below shows a hex dump of the sector containing the Master Boot Record. The figure shows the sector in two parts. The first part is the Master Boot Record, which occupies the first 446 bytes of the sector. The disk signature (FD 4E F2 14) is at the end of the Master Boot Record code. The second part is the Partition Table.

Viruses Can Infect the Master Boot Record

Many destructive viruses damage the Master Boot Record and make it impossible to start the computer from the hard disk. Because the code in the Master Boot Record executes before any operating system is started, no operating system can detect or recover from corruption of the Master Boot Record.

You can use, for example, Active@ Disk Editor to display the Master Boot Record, and compare it to the Master Boot Record shown above. There are also utilities on the Microsoft Windows Resource Kits that enable you to save and restore the Master Boot Record.