Windows 10 bootrec mbr fix

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

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

UPDATED 8/29/2023: Master Boot Record (MBR), sometimes also referred to as the “master partition table” or “partition sector,” is a critical piece of information that enables a computer to find and identify the location of the operating system to allow Windows 10 to boot.

Sometimes, system settings changes or incorrectly shut down can corrupt the Master Boot Record due to viruses or other types of malware. Other times, you may even encounter the “Bootmgr Is Missing” error message that will prevent the device from starting.

If you ever encounter such a problem, you must fix the MBR to enable Windows 10 to load again using a USB installation media and a few Command Prompt lines.

This guide will teach you how to repair the Master Boot Record on Windows 10.

Repair 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 pressing one of the function keys (F1, F2, F3, F10, or F12), the “ESC” or “Delete” key. However, the process is usually different per manufacturer and device model. Check your manufacturer’s support website for more specific instructions.
  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 from the lower-left corner.

    Repair your computer - Windows 10 Setup

  6. Click on Troubleshoot.

  7. Click on Advanced options.

  8. Click the Command Prompt option.

    Advanced options (Advanced Startup)

  9. In Command Prompt, use the “Bootrec.exe” tool to repair the Master Boot Record on Windows 10. The Bootrec.exe tool supports many 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 does not list all the operating systems installed on the 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 troubleshooting the “Bootmgr Is Missing” error and rebuilding the BCD store does not fix the problem, use the following commands to export and erase the BCD store and use the “RebuildBcd” command again to fix the Windows 10 process.

    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 the bootable operating systems on the computer.

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

  11. Click the “X” button to close the Command Prompt.

  12. Restart the computer.

Once you complete the steps, the Master Boot Record will be repaired, and Windows 10 should load normally again.

If you aren’t sure 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 the “bootrec” tool should be enough to repair the Master Boot Record, other related issues may require other command-line tools (such as Bootsect.exe or BCDboot), but they are beyond the scope of this guide.

We focus this guide on Windows 10, but these instructions should also work on Windows 8.1.

About the author

Mauro Huculak is a Windows How-To Expert who started Pureinfotech in 2010 as an independent online publication. He has also been a Windows Central contributor for nearly a decade. Mauro has over 14 years of experience writing comprehensive guides and creating professional videos about Windows and software, including Android and Linux. Before becoming a technology writer, he was an IT administrator for seven years. In total, Mauro has over 20 years of combined experience in technology. Throughout his career, he achieved different professional certifications from Microsoft (MSCA), Cisco (CCNP), VMware (VCP), and CompTIA (A+ and Network+), and he has been recognized as a Microsoft MVP for many years. You can follow him on X (Twitter), YouTube, LinkedIn and Email him at [email protected].