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)?

//
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.

Podcast audio

Play

Video Narration

Footnotes

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

Posted: December 18, 2019 in: Windows Components
Shortlink: https://askleo.com/104130
Tagged: , ,
« Previous post:
Next post: »

New Here?

Let me suggest my collection of best and most important articles to get you started.

Of course I strongly recommend you search the site -- there's a ton of information just waiting for you.

Finally, if you just can't find what you're looking for, ask me!

Confident Computing

Confident Computing is the weekly newsletter from Ask Leo!. Each week I give you tools, tips, tricks, answers, and solutions to help you navigate today’s complex world of technology and do so in a way that protects your privacy, your time, and your money, and even help you better connect with the people around you.

The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition

Subscribe for FREE today and claim your copy of The Ask Leo! Guide to Staying Safe on the Internet – FREE Edition. Culled from the articles published on Ask Leo! this FREE downloadable PDF will help you identify the most important steps you can take to keep your computer, and yourself, safe as you navigate today’s digital landscape.



My Privacy Pledge

Leo Who?

I'm Leo Notenboom and I've been playing with computers since I took a required programming class in 1976. I spent over 18 years as a software engineer at Microsoft, and after "retiring" in 2001 I started Ask Leo! in 2003 as a place to help you find answers and become more confident using this amazing technology at our fingertips. More about Leo.

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.