Surface Book with Cortana on the Windows 10 taskbar
The fixer

How to repair Master Boot Record (MBR) on Windows 10

Sometimes the Master Boot Record (MBR) gets corrupted or misconfigured not letting Windows 10 to load correctly, and in this guide you'll learn how to fix this issue.

Master Boot Record (MBR), sometimes also referred to as the “master partition table” or “partition sector,” is the most important piece of information that enables your PC to find and identify the location of the operating system to allow Windows 10 to boot.

Often due to viruses, system reconfiguration, or when your device doesn’t shut down properly can cause the Master Boot Record to get corrupted, and sometimes, you may even come across the Bootmgr Is Missing error message that will prevent your device from booting.

If you ever have such a problem, you’ll need to fix the MBR to enable Windows 10 to load again using a bootable installation media and Command Prompt.

In this guide, you’ll learn the steps to repair the Master Boot Record on your computer.

Repair the Master Boot Record on Windows 10

To fix MBR problems on a computer running Windows 10, use these steps:

  1. Create a Windows 10 USB bootable media.

  2. Change the device firmware settings to start from the bootable media. 

    Quick tip: The process to change the settings for the Basic Input Output System (BIOS) or Unified Extensible Firmware Interface (UEFI) usually requires to press one of the function keys (F1, F2, F3, F10, or F12), the ESC or Delete key. However, this process is different per manufacturer and per device, as such, for more accurate instructions, visit your PC manufacturer’s support website.
  3. Start the PC with the bootable media.

  4. Click the Next button in the Windows 10 Setup.

  5. Click the Repair your computer button in the lower-left corner.

    Repair your computer - Windows 10 Setup

  6. Click the Troubleshoot button.

  7. Click the Advanced options button.

  8. Click the Command Prompt button.

    Advanced options (Advanced Startup)

  9. You’ll now enter into the Command Prompt environment, which will allow you to launch the Bootrec.exe tool to repair the Master Boot Record on your Windows 10 PC. The Bootrec.exe supports a number of options depending on your situation.

    Use the FixMbr option when you need to repair Master Boot Record corruption problems, or when you need to clean the code from the MBR. This command will not overwrite the existing partition table in the hard drive.

    Bootrec /fixMbr

    Use the FixBoot option when the boot sector was replaced with another non-standard code, the boot sector is damaged, or when you installed an early version of the operating system alongside another more recent version.

    Bootrec /fixBoot

    Use the ScanOS option when the Boot Manager menu doesn’t list all the operating systems installed on your device. This option will scan all drives to find all compatible installations and it will display the entries that are not in the BCD store.

    Bootrec /ScanOS

    Use the RebuildBcd option when you don’t have another option and you must rebuild the BCD (Boot Configuration Data) store.

    Bootrec /RebuildBcd

    Bootsec.exe fixing the Master Boot Record (MBR) on Windows 10

  10. If you are trying to troubleshoot a “Bootmgr Is Missing” error and rebuilding the BCD store doesn’t fix the problem, you can use the following commands to export and erase the BCD store and using the RebuildBcd command again to try getting Windows 10 to boot.

    While in the Command Prompt using the recovery environment, type the following commands and press Enter on each line:

    BCDedit /export C:\BCD_Backup
    CD boot
    Attrib BCD -s -h -r
    Ren C:\boot\bcd bcd.old
    Bootrec /RebuildBcd

    Press Y to confirm adding Windows 10 to the list of bootable operating system on your computer.

    Fix MBR on Windows 10 using the RebuildBCD command option with Bootrec.exe

  11. Close Command Prompt.

Once you complete the steps, reboot your computer, and then, you should now be able to load Windows 10 again.

If you aren’t sure exactly about the problem with your computer, you should try all the commands in this guide to see if any of them repair the issue allowing you to boot again into Windows 10.

While Bootrec.exe should be good enough to repair the Master Boot Record, there are other related issues that may require the use of other command line tools, such as Bootsect.exe or BCDboot, but they are beyond the scope of this guide.

We’re focusing this guide on Windows 10, but these instructions should also work on Windows 8.1.

Update July 12, 2020: Originally published in May 2016, revised in July 2020.