If Windows 10 won’t boot and you see errors like “Operating system not found” or a black screen, the Master Boot Record (MBR) is often the culprit. You can fix and repair the MBR using the built-in Bootrec tool or the Startup Repair option from the Windows Recovery Environment—no third-party software needed. This guide walks you through both methods, explains when each is appropriate, and covers common pitfalls.
What Is the MBR and Why Does It Break?
The Master Boot Record is the first 512 bytes of your hard drive (or SSD) that tells the BIOS/UEFI where the Windows boot loader lives. It contains a small executable code and the partition table. When your PC starts, the firmware reads the MBR, which then loads the Windows Boot Manager (bootmgr). If the MBR is corrupted—due to a power outage during a write, a failing drive, malware, or a botched dual-boot setup—the boot chain breaks, and Windows cannot start.
On modern systems, there are two firmware types: legacy BIOS (which uses MBR disks) and UEFI (which uses GPT disks and a different boot process). The repair steps below work for legacy BIOS/MBR systems. If your PC uses UEFI, you may instead see “Bootmgr is missing” and should use the Startup Repair option, which also handles UEFI boot entries.
Before You Start: Create a Windows 10 Installation USB
Both repair methods require booting into the Windows Recovery Environment (WinRE). If Windows won’t start, you’ll need a bootable USB drive with Windows 10 installation media. Here’s how to create one on another working PC:
- Download the Media Creation Tool from Microsoft’s official website.
- Run the tool and choose “Create installation media for another PC.”
- Select your language and edition, then choose USB flash drive (at least 8 GB).
- Insert the USB and wait for the tool to finish.
If you already have a Windows 10 recovery drive or a system repair disc, you can use that instead.
Method 1: Use Startup Repair (Easiest)
Startup Repair is a Windows automated tool that scans for common boot problems, including MBR corruption, and attempts to fix them without user intervention. It’s the first thing to try because it’s safe and often resolves the issue.
- Insert the installation USB and boot from it (you may need to press F12, F2, or Esc during startup to choose the boot device).
- Select your language and click Next.
- Click Repair your computer in the bottom-left corner.
- Choose Troubleshoot > Advanced options > Startup Repair.
- Select your operating system (usually “Windows 10” on the relevant drive).
- Wait while Windows diagnoses and repairs. It may take several minutes and may restart your PC.
If Startup Repair succeeds, your PC should boot normally. If it fails, proceed to the manual Bootrec method below.
Method 2: Rebuild the MBR with Bootrec (Command Line)
Bootrec.exe is a command-line tool built into Windows 10 that can rewrite the MBR, rebuild the boot configuration data (BCD), and fix boot sector issues. This is the most direct way to repair the MBR.
- Boot from the installation USB and go to Repair your computer > Troubleshoot > Advanced options > Command Prompt.
- In the Command Prompt window, type the following commands one at a time, pressing Enter after each:
bootrec /fixmbr bootrec /fixboot bootrec /scanos bootrec /rebuildbcd
- /fixmbr writes a new MBR to the system partition without erasing the partition table. This is the core fix for MBR corruption.
- /fixboot writes a new boot sector to the system partition. If you get “Access is denied,” it may mean the boot sector is fine or you need to run it from a different context.
- /scanos scans for Windows installations and lists them.
- /rebuildbcd rebuilds the Boot Configuration Data store, which is often damaged alongside the MBR.
After running these, type exit and restart your PC. If Windows still doesn’t boot, try the following additional steps.
When Bootrec Fails: Additional Commands and Alternatives
Sometimes the MBR is repairable but the BCD is too damaged, or the partition layout is off. Here are extra commands you can run from the same Command Prompt:
- chkdsk /f /r C: (replace C: with your Windows drive letter) – checks the filesystem for errors that may prevent boot.
- diskpart – opens the disk partitioning utility. You can use it to set the active partition (for MBR disks) by selecting the drive and typing
active. This is often needed if the system partition isn’t marked active. - sfc /scannow – runs System File Checker to repair corrupt system files. This requires the Windows installation to be accessible, so it may not work from WinRE.
If the MBR is physically damaged (e.g., bad sectors on the first track), no software repair will help. In that case, you may need to replace the drive and reinstall Windows.
How to Avoid MBR Corruption in the Future
While you can’t prevent every cause, these habits reduce the risk:
- Always shut down Windows properly – avoid hard power-offs during updates or disk writes.
- Use a UPS for desktops to prevent power surges and outages.
- Keep your antivirus active – some malware targets the MBR.
- Back up your data regularly – use File History or a system image so you can restore if needed.
- Consider switching to UEFI/GPT – if your hardware supports it, UEFI is more robust and has a backup boot loader.
Frequently Asked Questions
Will repairing the MBR delete my files?
No. The bootrec /fixmbr command only writes the boot code to the first sector; it does not touch your personal files, programs, or the partition table. However, if you run diskpart and accidentally clean the disk, you will lose everything, so be careful with that tool.
What’s the difference between MBR and GPT?
MBR is the older partition scheme, supporting up to 4 primary partitions and drives up to 2 TB. GPT is newer, supports more partitions and larger drives, and is required for UEFI boot. Windows 10 can use either, but modern PCs often use GPT.
Can I repair the MBR without a Windows installation USB?
If you can access the Advanced Startup Options (by holding Shift while clicking Restart in Windows), you can open Command Prompt from there and run bootrec. If Windows won’t start at all, you need an external bootable media.
Why do I get “Access is denied” when running bootrec /fixboot?
This usually means the boot sector is already correct or the system partition is not the active one. Try running bootrec /fixmbr first, then use diskpart to ensure the system partition is active, and then retry /fixboot.
Is it safe to run bootrec on a dual-boot system?
It can overwrite the boot manager, which may affect other operating systems. If you have Linux or another OS installed, you may need to reinstall its boot loader afterward. It’s best to back up your MBR first if possible.
How long does the repair take?
Startup Repair typically takes 5–15 minutes. Running bootrec commands manually takes only a few seconds each, but the whole process (including booting from USB) may take 30–60 minutes if you’re also running chkdsk.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- How to Create App Shortcuts in Windows 10 Start Menu
- How to Rename a SQL Server Database
- Google Docs Landscape: Change Page Orientation
- Recover Deleted Admin Account in Windows 11
- Install Custom Recovery on Samsung Galaxy E5
- Fix Administrator Blocked You From Running This App Error