Fix MBR Error: Steps for Windows 10 and 11
In this article
If you see an MBR error like "Operating system not found" or "Invalid partition table" when starting your PC, the fix is to repair the Master Boot Record using Windows Recovery Environment commands. This article explains what the MBR is, why it fails, and the exact steps to repair it in Windows 10 and 11.
What Is the MBR and Why Does It Fail?
The Master Boot Record (MBR) is the first 512 bytes of your hard drive. It contains the partition table and a small boot loader that tells the computer where the operating system is located. When you press the power button, the BIOS/UEFI reads the MBR and hands control to the boot loader, which then starts Windows.
MBR errors occur when this data is missing, corrupted, or misread. Common causes include:
- Improper shutdowns or power outages during disk writes
- Malware or virus infections that overwrite the boot sector
- Accidental deletion of the system partition or boot files
- Disk cloning errors or failed updates
- Physical drive damage or bad sectors
Note that MBR is the older partitioning scheme, used with BIOS or legacy UEFI mode. Modern Windows installations often use GPT (GUID Partition Table) with UEFI, but MBR is still common on older machines and some dual-boot setups.
How to Access the Windows Recovery Environment
To repair the MBR, you need to boot into the Windows Recovery Environment (WinRE). Here are the two main ways:
- From a bootable Windows USB or DVD: Insert the installation media, restart your PC, and press any key when prompted. Choose your language, then click "Repair your computer" in the bottom-left corner.
- From a working Windows installation: Go to Settings > System > Recovery > Advanced startup, and click "Restart now." If Windows won't boot, you can also interrupt the boot process three times (by turning off the PC during startup) to trigger automatic repair.
Once in WinRE, navigate to Troubleshoot > Advanced options > Command Prompt. This opens a command-line window where you can run the repair tools.
Step-by-Step MBR Repair Commands
In the Command Prompt, type the following commands one at a time, pressing Enter after each. These are the standard Microsoft tools for rebuilding the boot configuration.
bootrec /fixmbr– This rewrites the MBR with a clean, Windows-compatible boot loader. It does not affect your files or partitions.bootrec /fixboot– This repairs the boot sector on the system partition. If you get an "Access is denied" error, skip to the alternative method below.bootrec /scanos– This scans all disks for Windows installations and shows you what it finds.bootrec /rebuildbcd– This rebuilds the Boot Configuration Data (BCD) file, which stores boot options. Follow the prompts to add your Windows installation.
After running these, type exit and restart your PC. If the error persists, try the alternative method below.
Alternative Fix Using Diskpart
If bootrec /fixboot fails with "Access is denied," the system partition may not have a drive letter. You can assign one manually using Diskpart:
- In the Command Prompt, type
diskpartand press Enter. - Type
list diskto see all drives. Identify your system drive (usually Disk 0). - Type
select disk 0(replace 0 with your disk number). - Type
list partitionto see partitions. Look for the System Reserved partition (typically 100-500 MB, type System). - Type
select partition 1(replace 1 with the system partition number). - Type
assign letter=Sto give it the letter S. - Type
exitto leave Diskpart.
Now run bootrec /fixboot again. If it still fails, you can manually rebuild the boot files with:
bcdboot C:\Windows /s S: /f ALL
This copies the boot files from your Windows folder (assuming it's on C:) to the system partition (S:) and rebuilds the BCD. Adjust the drive letters if yours differ.
When to Use MBR vs. GPT and How to Check
Before repairing, it's worth knowing which partition scheme you have. MBR is limited to 2 TB per disk and four primary partitions, while GPT supports larger drives and more partitions. Modern Windows 10/11 installations typically use GPT with UEFI, but many older PCs still use MBR with legacy BIOS.
To check your disk type from Windows (if it boots), open Disk Management (right-click Start > Disk Management), right-click your system disk, and select Properties > Volumes. The partition style is shown there. If it says "Master Boot Record," you're using MBR; if "GUID Partition Table," you're using GPT.
If your disk is GPT and you're getting MBR errors, the actual problem may be a corrupted EFI System Partition (ESP) rather than the MBR. In that case, use the bcdboot command above with the ESP letter (often the partition labeled "EFI" in Diskpart).
Common Problems and Their Solutions
- "The system cannot find the path specified" during bootrec: This usually means the Windows folder is not on C:. Use
dir C:\to see if Windows is there; if not, try D: or E:. - "Access is denied" on /fixboot: The system partition may be hidden. Use the Diskpart method above to assign a letter first.
- MBR repair doesn't fix the error: The issue might be a corrupted BCD, not the MBR itself. Run
bootrec /rebuildbcdorbcdbootas described. - Error appears after cloning a drive: The clone may not have copied the boot sector correctly. Re-run the repair commands on the new drive.
- Multiple operating systems: If you dual-boot, the MBR must point to the correct boot manager. Use
bootrec /rebuildbcdto re-add all OS entries.
Backup and Safety Measures Before Repairing
Repairing the MBR is generally safe and does not delete personal files, but any mistake with diskpart or bcdboot could make your system unbootable. Always back up important data before starting. If you have a second computer, create a full system image or at least copy critical files to an external drive.
Also, ensure your bootable USB/DVD matches your Windows version (10 or 11). Using a Windows 11 installer to repair a Windows 10 system usually works, but it's safer to use the same version. If you don't have installation media, you can create one from another PC using Microsoft's Media Creation Tool.
Frequently Asked Questions
Will repairing the MBR delete my files?
No. The bootrec /fixmbr and bootrec /fixboot commands only rewrite boot-related data. They do not touch your personal files, documents, or installed programs. However, diskpart clean (which is not part of this repair) would erase everything, so avoid that command unless you intend to wipe the disk.
What if I get "Element not found" when running bootrec?
This usually means the system cannot find a valid Windows installation. Run bootrec /scanos to see if Windows is detected. If not, the Windows folder may be on a different drive, or the partition table itself is damaged. In that case, try the bcdboot command with the correct drive letter.
Can I fix MBR errors without a Windows installation disc?
Yes, if you can boot into Windows Recovery Environment via Settings > Recovery > Advanced startup. If Windows won't boot at all, you need installation media or a recovery drive. You can create one from another working PC.
How do I know if my PC uses MBR or GPT?
Open Disk Management (right-click Start > Disk Management), right-click your system disk, select Properties > Volumes. The partition style is listed there. Alternatively, type diskpart in Command Prompt, then list disk – an asterisk (*) in the GPT column indicates GPT.
Is it better to convert MBR to GPT instead of repairing?
If your motherboard supports UEFI, converting to GPT can offer benefits like faster boot and support for larger drives. However, conversion requires wiping the disk or using a specialized tool, and it's not necessary if the MBR repair works. Only consider conversion if you're already planning a clean install.
What if the MBR error appears after a Windows update?
Sometimes updates can corrupt the boot configuration. Running bootrec /rebuildbcd or bcdboot usually resolves it. If not, you may need to use System Restore from WinRE to roll back the update.