How to Rebuild the Master Boot Record (MBR) in Windows 11

How to Rebuild the Master Boot Record

Your Windows 11 PC powers on, but instead of loading Windows, you see an error like “BOOTMGR is Missing,” “Operating System Not Found,” or “Invalid Partition Table.” In some cases, the screen may stay black, or your computer may keep restarting before Windows can boot. These problems can occur when the Master Boot Record (MBR) becomes damaged or corrupted. The Master Boot Record is a small section at the beginning of your system drive that contains the information your computer needs to locate and start Windows. If it’s corrupted due to disk errors, a failed update, malware, or an interrupted partition change, your PC may not boot normally. In this guide, you’ll learn what causes MBR corruption and how to rebuild the Master Boot Record in Windows 11 to get your PC working again.

What Is the Master Boot Record (MBR)?

The Master Boot Record (MBR) is a small section located at the beginning of a storage drive that contains boot information your computer needs to start Windows. It includes the boot code and the partition table, which tells the system where Windows is installed and which partition should be used to boot.

When you turn on your PC, the system firmware (BIOS) reads the MBR before Windows starts loading. If the MBR is missing or corrupted, the computer may be unable to locate the Windows boot files and may show startup errors instead of loading the operating system.

Although most modern Windows 11 PCs use GPT (GUID Partition Table) with UEFI firmware, some computers still use MBR with the older Legacy BIOS boot mode. The repair methods in this guide are intended for systems that use MBR. If your PC uses GPT, you may need to repair the EFI bootloader instead.

What Causes the Master Boot Record (MBR) to Become Corrupted?

The Master Boot Record doesn’t usually become corrupted on its own. In most cases, it’s damaged by a system problem, disk error, or an unexpected interruption during startup or disk operations.

Some of the most common causes include:

  • Unexpected power loss: If your PC loses power while Windows is starting, updating, or writing data to the disk, the MBR or related boot information can become corrupted.
  • Disk errors or failing storage drive: Bad sectors or a failing hard drive can damage the area of the disk where the MBR is stored, preventing your computer from booting correctly.
  • Malware or boot-sector viruses: Although less common today, some types of malware target the boot sector, modifying or corrupting the MBR to prevent Windows from starting.
  • Incorrect partition changes: Using tools like DiskPart or third-party partition managers to create, delete, resize, or convert partitions incorrectly can overwrite or damage the MBR.
  • Failed Windows update or installation: A Windows update or installation interrupted due to a power failure, hardware issue, or forced shutdown may leave the boot records in an inconsistent state.
  • Installing another operating system: Installing or removing another operating system, such as Linux, can replace or modify the existing boot loader, which may cause Windows to stop booting if the process isn’t completed correctly.

Before You Begin

Before rebuilding the MBR, try these quick checks. In some cases, the issue is caused by hardware or boot settings rather than a damaged MBR.

  • Disconnect all unnecessary USB drives, external hard drives, memory cards, and DVDs connected to your PC.
  • Restart your computer and make sure the system drive is detected in the BIOS or UEFI settings.
  • Verify that the correct system drive is set as the first boot device.
  • If your drive is failing or making unusual clicking or grinding noises, avoid repeated repair attempts and back up your data as soon as possible.

If your PC still won’t boot after these checks, continue with the repair methods below.

Method 1: Rebuild the Master Boot Record Using Bootrec Commands

Windows includes a built-in repair tool called Bootrec that can rebuild the boot record and repair boot configuration data. This is usually the first method to try for MBR-related startup problems.

Step 1: Boot into the Windows Recovery Environment

If your PC won’t start normally, you’ll need to access the Windows Recovery Environment (WinRE).

  • Turn on your PC and interrupt the startup process 2 or 3 times until “Preparing Automatic Repair” appears.

Or

  • Boot from a Windows 11 installation USB drive and select “Repair your computer” instead of “Install now”.
repair your computer

Step 2: Open Command Prompt

In WinRE, navigate to: TroubleshootAdvanced optionsCommand Prompt

If prompted, select your Windows account and enter the password.

Advanced options command prompt

Step 3: Run the Bootrec Commands

Type the following commands one at a time, pressing Enter after each command:

bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd

command to Rebuild the Master Boot Record

Here’s what each command does:

  • bootrec /fixmbr writes a new Master Boot Record without modifying your existing partitions or personal files.
  • bootrec /fixboot creates a new boot sector compatible with your current Windows installation.
  • bootrec /scanos scans all drives for Windows installations that aren’t currently listed in the Boot Configuration Data (BCD).
  • bootrec /rebuildbcd rebuilds the Boot Configuration Data store and adds detected Windows installations.

When the process is complete, close Command Prompt and restart your computer.

If Windows starts normally, the MBR was successfully rebuilt. If the problem persists or one of the commands returns an error, continue to the next method.

Method 2: Fix the “bootrec /fixboot Access Is Denied” Error

If you receive the message “Access is denied” after running the bootrec /fixboot command, don’t worry. This is a common issue on some Windows 11 systems, especially after major updates or changes to the boot configuration.

In many cases, assigning a drive letter to the system partition and recreating the boot files resolves the problem.

Step 1: Open DiskPart

In Command Prompt, type the following commands one at a time:

diskpart
list disk
select disk 0
list volume

Identify the EFI System Partition (usually a small FAT32 partition between 100 MB and 300 MB).

locate EFI System Partition

Step 2: Assign a Drive Letter

Replace X with the volume number of the EFI partition.

select volume X
assign letter=Z
exit

Step 3: Recreate the Boot Files

Now run:

bcdboot C:\Windows /s Z: /f ALL

Recreate the Boot Files

Note: If Windows is installed on a drive other than C:, replace C:\Windows with the correct Windows installation path.

After the command completes successfully, restart your PC and check whether Windows boots normally.

Important: This method applies to Windows installations that use UEFI and GPT. If your computer uses Legacy BIOS with an MBR disk, the bootrec /fixboot command usually works without these additional steps.

Method 3: Mark the System Partition as Active

On MBR disks, the partition containing the Windows boot files must be marked as Active. If the wrong partition is marked active, or if no partition is active, your computer may fail to boot even after rebuilding the Master Boot Record.

Important: Only MBR disks use an Active partition. If your PC uses GPT with UEFI, this method does not apply.

Step 1: Open Command Prompt

Boot into the Windows Recovery Environment (WinRE) and open Command Prompt.

Step 2: Start DiskPart

Type the following commands, pressing Enter after each one:

diskpart
list disk
select disk 0
list partition

Identify the partition where Windows is installed or the System Reserved partition (if present).

Step 3: Mark the Partition as Active

Replace X with the correct partition number.

select partition X
active
exit

Step 4: Restart Your PC

Close Command Prompt and restart your computer.

If the incorrect partition was preventing Windows from booting, marking the correct partition as Active should allow the system to start normally.

Tip: If you’re unsure which partition should be active, avoid guessing. Marking the wrong partition as active can prevent Windows from booting. In most MBR installations, the System Reserved partition (if one exists) is the correct active partition. Otherwise, it’s typically the partition where Windows is installed.

What If Rebuilding the MBR Doesn’t Fix the Problem?

If you have rebuilt the MBR but Windows still will not start, the issue may be caused by another boot component, file system error, or hardware failure

Here are a few things to check next:

Repair the Boot Configuration Data (BCD)

If the Boot Configuration Data (BCD) is damaged or missing, Windows won’t know where to find the operating system, even if the MBR has been successfully repaired.

Boot into Command Prompt from the Windows Recovery Environment and run:

bootrec /scanos
bootrec /rebuildbcd

If a Windows installation is found, type Y to add it to the boot list.

Check the Drive for Errors

A failing hard drive or bad sectors can corrupt boot files and prevent Windows from starting.

Run the following command:

chkdsk C: /f /r

run CHKDSK on WinRE

If Windows is installed on a different drive letter in the Recovery Environment, replace C: with the correct drive.

Check Your BIOS Boot Mode

An MBR disk requires Legacy BIOS (or Legacy/CSM) boot mode. If the BIOS is set to boot in UEFI mode only, Windows may fail to start.

Enter your BIOS or UEFI settings and verify that the boot mode matches your disk partition style.

Check for Drive Failure

If your drive has developed hardware faults, repairing the MBR won’t solve the problem. Signs of a failing drive include:

  • Clicking or grinding noises from a hard drive.
  • Frequent disk errors or blue screen crashes.
  • SMART warnings reported by the BIOS or diagnostic tools.

If you suspect the drive is failing, back up your data as soon as possible and replace the drive.

If none of these steps resolve the issue, consider using System Restore, restoring from a system image backup, or reinstalling Windows as a last resort.

Frequently Asked Questions (FAQs)

1. Does rebuilding the MBR delete my files?

No. Rebuilding the Master Boot Record only repairs the boot information on the drive. It doesn’t delete your personal files or installed programs.

2. Can I rebuild the MBR without reinstalling Windows?

Yes. In most cases, you can rebuild the MBR using the Bootrec tool in the Windows Recovery Environment without reinstalling Windows.

3. How do I know if my disk uses MBR or GPT?

If Windows still starts, open Disk Management, right-click your system disk, select Properties > Volumes, and check the Partition style field. It will show Master Boot Record (MBR) or GUID Partition Table (GPT).

4. What causes the Master Boot Record to become corrupted?

Common causes include unexpected power loss, disk errors, malware, failed Windows updates, and incorrect partition changes using disk management tools.

5. What should I do if rebuilding the MBR doesn’t fix the problem?

If rebuilding the MBR doesn’t restore Windows, try repairing the Boot Configuration Data (BCD), checking the drive for errors with CHKDSK, or testing the drive for hardware failure. If the issue persists, you may need to restore Windows from a backup or reinstall the operating system.

Amiush Palk

I am Amiush founder of this blog. My qualification. completed Bachelor of Arts (BA) and Microsoft Certified Professional (MCP). With a strong background in computer applications love write articles on Microsoft Windows (11, 10, etc.) Cybersecurity, WordPress and more.