Technology in terms you understand. Sign up for the Confident Computing newsletter for weekly solutions to make your life easier. Click here and get The Ask Leo! Guide to Staying Safe on the Internet — FREE Edition as my thank you for subscribing!

How Do I Fix the Master Boot Record (MBR)?

Question: Can you tell me how to fix the MBR, as I never had to do it.

The MBR, or Master Boot Record, is the very first sector of your hard disk. It tells the BIOS or UEFI where to locate the software that is loaded when you boot the computer.

Without an MBR, or with a damaged MBR, your machine won’t boot (power up and load the operating system).

There’s a lot more to booting than just the MBR. Fortunately, recent versions of Windows have made the distinction between these various pieces fairly transparent, referring to all of them as “Windows Startup”.

I’m not sure what led you to ask about fixing the MBR, but repairing Windows Startup will address MBR problems as well as others.

Become a Patron of Ask Leo! and go ad-free!

Startup Repair

Recent versions of Windows now include something called “Startup Repair”, which attempts to fix several processes that can cause a machine to fail to boot. Fixing the MBR is just one of them.

The first logical question to ask is: if you can’t boot the machine, how do you run the boot repair tool?

The answer is, you boot from something else. Specifically, you can boot from the System Repair Disc, a disk you create beforehand, when the operating system is running; or you can download the Windows Setup Disc for your version of Windows, which also has these tools.

I’ll assume the setup disk, since more often than not folks don’t create a repair disc in advance.

Running the repair

Boot from your Windows Setup CD, DVD, or USB. You’ll first be asked what language and keyboard layout you’ll want to use.

Windows Setup Language Selection
Windows setup language selection. (Click for larger image.)

Click Next. This will bring up the primary Windows Setup screen.

Windows Setup Install Now Screen
Windows setup “install now” screen.

DO NOT click “Install now”. Instead, click on Repair your computer in the lower left.

Repair your computer -- Choose an option screen
Repair your computer — choose an option screen.

Click on Troubleshoot.

Troubleshooting -- Advanced options screen
Troubleshooting — Advanced options screen. (Click for larger image.)

Click on Startup repair.

Startup repair -- operating system selection
Startup repair — operating system selection.

You’ll be presented with a list of operating system installations that were found on your machine. In most cases, there’ll only be one, as in the example above. Click on it, and Startup Repair will begin.

Startup repair in progress
Startup repair in progress.

After it completes, you’ll either be told that nothing could be fixed (as in my case, since there was nothing to be fixed), or that repairs were made and you can reboot your machine.

If Startup Repair explicitly fails, or your computer doesn’t start after running it, you can try the command line tools listed below.

Start repair via command line

Caveat: it’s my assumption that Startup Repair, above, runs these same tools or their equivalents for you behind the scenes. The hope is that by running them manually, we may get more diagnostic information, if only to provide to a repair technician.

Follow the steps above to boot from the setup disk again, this time clicking on Command Prompt instead of Startup Repair.

Command Prompt run from the Setup disk's Repair option
Command Prompt run from the Setup disk’s Repair option.

There are several commands and options available.

bootrec /fixmbr

If all you need do is fix the MBR, then “bootrec /fixmbr” is the command to run.

bootrec /fixboot

This command attempts to fix the Boot Configuration Data (BCD), which is used by newer boot processes.

bootrec /rebuildbcd

This one rebuilds the Boot Configuration Data (BCD) used by newer boot processes with the operating systems found on the hard disk1.

Unfortunately, errors in these steps are beyond the scope of this article, though as I said, perhaps additional diagnostic information might be made available.

In most cases, running Startup Repair, above, is all that’s necessary.

Do this

Subscribe to Confident Computing! Less frustration and more confidence, solutions, answers, and tips in your inbox every week.

I'll see you there!

Podcast audio

Play

Footnotes & References

1: I believe this will report “0” installations found if only one was found. My theory is that it’s reporting additional installations found.

More for Patrons of Ask Leo!

Silver-level patrons have access to this related video from The Ask Leo! Video Library.

Windows Startup Repair   Windows Startup Repair

4 comments on “How Do I Fix the Master Boot Record (MBR)?”

  1. Leo, I have cloned my two PCs, running Windows 10, to two external drives using a software program, Macrium Reflect. If one of my SSD drives should fail, I just replace it with an identical SSD, plug the external drive in, and, in theory, I should be able to boot from the drive, reload Windows and all my data
    in, and I’m good to go. Is the Master Boot Record still needed in this circumstance? BTW thanks for all your tips.

    Reply
  2. None of the images for this article are being displayed on my computer. I have tried on Firefox and Chrome. A couple of them open if I right click and select view image, but a number of them just produce a blank page.

    Reply

Leave a reply:

Before commenting please:

  • Read the article.
  • Comment on the article.
  • No personal information.
  • No spam.

Comments violating those rules will be removed. Comments that don't add value will be removed, including off-topic or content-free comments, or comments that look even a little bit like spam. All comments containing links and certain keywords will be moderated before publication.

I want comments to be valuable for everyone, including those who come later and take the time to read.