The master boot record is a relic from the be­gin­nings of PC tech­nol­o­gy. It was in­tro­duced for the first time in 1983 with IBM PC DOS 2.0 and has since played an important role es­pe­cial­ly in Windows computers. We’ll show you how it is used to launch highly complex operating systems. Plus, we’ll explain the necessary steps if a master boot sector is no longer able to start the computer.

What is MBR?

The MBR is phys­i­cal­ly the first sector of a data medium (e.g. hard drive or USB stick), which is used by computers for the booting, or start-up process. The computer must be equipped with a BIOS and a x86 operating system.

Note

x86 refers to a specific processor ar­chi­tec­ture that was in­tro­duced by Intel in 1976. Among other functions, it processes special commands when con­trol­ling the operating system which are developed by chip man­u­fac­tur­ers Intel and AMD, for example. x86 proces­sors pre­dom­i­nant­ly had a 32-bit ar­chi­tec­ture initially (pro­cess­ing width: 32 bit), but current systems run with more high-per­for­mance 64-bit x86 proces­sors (pro­cess­ing width: 64 bit). The 64-bit x86 standard is also referred to as x64.

The MBR always has the same standard address on a disk: Cylinder 0, Head 0, Sector 1. It’s normally 512 bytes in size, which cor­re­sponds to the size of a sector on a disk.

An MBR is found on virtually all external storage media (e.g. USB sticks) that are com­pat­i­ble with PC tech­nol­o­gy (x64/x86 ar­chi­tec­ture) and can work with Windows. In the case of data media not intended for starting a PC; the MBR is not op­er­a­tional­ly engaged but instead only serves as a readable in­for­ma­tion source. For instance, playback devices for audio files find in­for­ma­tion there about the location and size of par­ti­tions which contain the playable MP3 files.

Structure and tasks of the MBR

The master boot sector always comprises at least four com­po­nents:

  • Start program (boot­loader)
  • Data media, disk signature (from Windows 2000)
  • Master partition table
  • MBR or boot signature (magic number)

The start program is contained in the first 446 bytes of the MBR. This rather tiny piece of software is activated when starting the PC and initiates the booting process. A more extensive procedure with stan­dard­ized pro­cess­ing steps is launched, ending with an operating system ready for use (e.g. Windows). Working memory built into the computer is addressed in order to run this process. It can be addressed if the computer is able to use elec­tri­cal energy for the necessary pro­cess­ing after being switched on.

Based on the data media or disk signature, Windows computers (from Windows 2000) identify a data medium with a partition table.

The partition table documents the al­lo­ca­tion of data storage into separate sectors. It does so using four entries, each com­pris­ing 16 bytes, which provide in­for­ma­tion about the location and size of each partition. For example, where a C:\ partition or D:\ partition begins and ends. In addition, the table contains in­for­ma­tion about the time of data storage, such as “FAT32”, “LINUX Native” or “Dynamic Disk”. The order of the par­ti­tions in the partition table does not always reflect the physical arrange­ment on the hard drive.

The MBR or boot signature contains the strings “55” and “AA” in two bytes. A master boot record is rec­og­nized thanks to its char­ac­ter­is­tic coding, which can always be found at the end of the MBR sector. If this in­for­ma­tion is missing, the master boot sector won’t be iden­ti­fied, and the boot process will be aborted with an error message.

MBR ac­tiv­i­ties require a trigger – provided by the BIOS (Basic Input/Output System) after switching on the PC. The BIOS is special software which is also known as firmware. It is found on the mainboard of PCs with x86 ar­chi­tec­ture, where it is embedded in a special chip (e.g. EPROM chip, Flash storage). The BIOS is a per­ma­nent­ly fixed component, even when the computer is switched off.

The BIOS itself does not need exact in­for­ma­tion about the par­ti­tion­ing of a disk. It is only intended to load and execute the MBR boot­loader in the memory. Once the master boot sector has been read and its boot­loader is active in the working memory, the active (bootable) partition of a divided hard drive is de­ter­mined via the partition table.

After it is located, a chain reaction takes place according to the principle of chain loading. The iden­ti­fied boot sector of the addressed partition is engaged, and the partition’s own boot­loader takes over control in the working memory. More extensive processes and routines follow which execute the actual start of the operating system. Since the partition’s own boot­loader handles more complex tasks, it is usually larger than the MBR start program.

If a computer has multiple operating systems, the boot process will stop pre­ma­ture­ly until the user makes a choice (e.g. between Windows 7 and Windows 10). These special boot managers generally work in a time-based manner. If a manual entry is not provided, the preferred operating system will be au­to­mat­i­cal­ly launched after a certain time limit.

Damaged MBR – what action is required?

If a x86 PC suddenly no longer starts up, the problem could be a faulty master boot sector. For instance, the BIOS may no longer be able to read the two bytes of the MBR signature. To remedy the situation, there are various trou­bleshoot­ing strate­gies which primarily depend on the installed operating system. Windows users now generally have two options:

  • Automatic system repair with an emergency medium (CD, DVD, USB stick)
  • Manual repair via the command prompt

Using the automatic method, the primary boot medium first needs to be changed in the BIOS. Otherwise, the start routine will always stop when it looks for an intact MBR on the active partition of the built-in hard drive – to no avail. If, for example, the computer is booted by a Windows 7 DVD after modifying the BIOS, “Computer repair options” can be selected after a few preceding steps. After a number of further steps, you will then access the system repair which au­to­mat­i­cal­ly restores the MBR.

In the case of the manual method, the master boot record has to be repaired with the command line tool provided by the Windows command prompt (cmd.exe). Repair processes can then be initiated with standard commands (bootrec/fixmbr, bootrec/fixboot). How you can access the command prompt depends largely on the operating system installed. Moreover, the process required depends on whether Windows is starting up or is no longer activated at all.

A defective master boot sector is not the only reason for repairs. A boot virus which infects the boot sector and becomes active during booting can also make such steps necessary. If possible, MBR repairs should only be performed by ex­pe­ri­enced users due to the risk of data loss. You should, therefore, have a backup of the system and important user data. If the recovery of the MBR partition does not result in the desired outcome or if it stops pre­ma­ture­ly, the hardware may be ir­repara­bly damaged.

Al­ter­na­tives to the Master Boot Record

The master boot record has some weak­ness­es, such as in­ad­e­quate trou­bleshoot­ing mech­a­nisms (if the MBR is damaged, for example), lim­i­ta­tions in the hard drive size or the handling of par­ti­tions. MBR par­ti­tions are only supported up to a storage capacity of 2 TB; without mod­i­fi­ca­tions, the con­ven­tion­al par­ti­tion­ing scheme can only handle four par­ti­tions.

In practice, however, these limits are partially offset with some tricks and workarounds. For example, the boot sector can be modified, and an extended partition set up, which in turn can be divided into smaller logical par­ti­tions. However, these little tricks represent makeshift solutions that can hardly keep pace with the current de­vel­op­ment of computer tech­nol­o­gy.

Current systems are in­creas­ing­ly replacing MBR with modern hard drive par­ti­tion­ing in GPT format. GPT excels with improved data security and it can handle larger hard drives and many par­ti­tions. GPT-formatted disks work closely with firmware in­ter­faces that have been es­tab­lished for some time as a successor to BIOS. For instance, from Windows Vista Service Pack 1 (64-bit x86 version) it is possible to start using unified ex­ten­si­ble firmware (UEFI). The newer boot tech­nol­o­gy is a kind of “miniature operating system” that supports 64-bit proces­sors natively from the factory.

Tip

Do you want to delve deeper into the topic? Find out more about the dif­fer­ences between MBR and GPT in our in-depth article.

The MBR has become less important recently due to more flexible and higher-per­for­mance al­ter­na­tives. Wherever a master boot sector is still used for booting, it’s usually to start computers with old hardware. What’s more, MBR tech­nol­o­gy is es­pe­cial­ly prevalent in the world of Windows for com­pat­i­bil­i­ty reasons.

Go to Main Menu