If Windows won’t boot and you don’t have the installation media handy, you can still repair the Master Boot Record (MBR) using built-in recovery tools. This guide shows you how to rebuild the MBR from the Windows Recovery Environment (WinRE) or a command prompt, working through the exact steps and common pitfalls. You’ll need a working computer with a USB drive or the ability to access the boot menu.
What You’ll Need
- A working Windows PC (to create a recovery USB if needed).
- A USB flash drive (at least 4 GB) if you need to create a bootable recovery drive.
- Access to the BIOS/UEFI boot menu (usually pressing F12, Esc, or Del during startup).
- Basic familiarity with typing commands in a command prompt.
Step-by-Step
- Access Windows Recovery Environment (WinRE) – Restart your PC. When the Windows logo appears, press and hold the power button to force a shutdown. Do this three times. On the third restart, Windows should enter Automatic Repair mode. If that fails, try pressing F11 or another manufacturer-specific key during startup to boot into recovery.
- Open Command Prompt – In the recovery environment, go to Troubleshoot > Advanced options > Command Prompt. If you’re asked for a BitLocker key or admin password, provide it.
- Identify the Windows drive – At the command prompt, type
diskpartand press Enter. Then typelist diskto see all disks. Note the disk number that contains your Windows installation (usually Disk 0). Typeexitto leave diskpart. - Run Bootrec commands – Type the following commands one by one, pressing Enter after each:
bootrec /fixmbr– Writes a new MBR to the system partition.bootrec /fixboot– Writes a new boot sector to the system partition.bootrec /rebuildbcd– Scans for Windows installations and rebuilds the Boot Configuration Data (BCD).
- If bootrec fails – If you get an error like “Element not found” or “The system cannot find the path specified,” you may need to rebuild the BCD manually. Type the following commands:
bcdedit /export C:\BCD_Backup(backup the current BCD).ren C:\Boot\BCD BCD.old(rename the old BCD).bootrec /rebuildbcd(try again).
- Exit and restart – Type
exitto close the command prompt, then choose Continue or restart your PC. If the MBR was the issue, Windows should boot normally.
Common Mistakes
- Running bootrec on the wrong disk – If you have multiple disks, you might write the MBR to the wrong one. Always verify the disk number with
diskpartbefore running bootrec. - Using /fixmbr on a UEFI system – Modern PCs often use UEFI with GPT disks, not MBR. In that case, bootrec /fixmbr won’t help; you may need to rebuild the EFI boot files instead.
- Forgetting to remove the recovery USB – If you booted from a USB, remove it before restarting, otherwise the PC may boot from the USB again.
- Not backing up the BCD – If you rename the BCD without backing it up, you could lose the ability to boot entirely. Always export it first.
Tips
- Use the correct partition – If you have a separate system partition (usually 100-500 MB), you may need to assign a drive letter to it before running bootrec. Use
diskpartto select the volume and assign a letter like S. - Check for disk errors – If bootrec works but Windows still fails to boot, run
chkdsk /f C:to check for file system errors. - Create a recovery drive in advance – On a working Windows PC, search for “Create a recovery drive” and follow the wizard to make a USB that includes system files. This gives you a reliable way to access WinRE without the installation disk.
- Know your firmware type – Check if your PC uses BIOS/MBR or UEFI/GPT. In Windows, open System Information and look at “BIOS Mode.” This tells you which repair commands are appropriate.
Troubleshooting
If the above steps don’t fix the boot issue, try these additional measures:
- Bootrec /scanos – Run
bootrec /scanosto see if Windows is detected. If it’s not, the problem may be a corrupted partition table, not just the MBR. - Manual BCD rebuild – If bootrec /rebuildbcd fails, you can manually create a BCD store using
bcdboot C:\Windows(assuming C: is your Windows partition). This command copies boot files and creates a new BCD. - Use Startup Repair – In the recovery environment, choose Troubleshoot > Advanced options > Startup Repair. This automated tool can fix many boot issues, including MBR problems.
- Check boot order – If you’re still stuck, enter BIOS/UEFI and ensure your hard drive is set as the first boot device. Sometimes a USB or other drive takes precedence.
- If nothing works – You may need to perform a system restore or reset. In the recovery environment, go to Troubleshoot > Advanced options > System Restore. If that fails, a clean install might be the only option, but you can back up files using a Linux live USB if needed.
Frequently Asked Questions
Can I fix the MBR without any bootable media?
Yes, if you can access the Windows Recovery Environment (WinRE) that’s stored on your hard drive. The three-time forced shutdown trick usually triggers it. If that doesn’t work, you’ll need a recovery drive or installation media.
What’s the difference between MBR and GPT?
MBR (Master Boot Record) is the older partition scheme, used with BIOS firmware. GPT (GUID Partition Table) is newer and used with UEFI. The repair commands differ: MBR uses bootrec /fixmbr, while GPT systems may need bcdboot or repairing the EFI boot loader.
Will these commands delete my files?
No, bootrec commands only rewrite the boot sector and boot configuration files. Your personal files, documents, and installed programs remain untouched. However, it’s always wise to back up important data before any repair.
Why do I get “Access is denied” when running bootrec?
This usually means you’re not running the command prompt as administrator, or the system partition is protected (like a BitLocker-encrypted drive). Make sure you’re in the recovery environment’s command prompt, which runs with elevated privileges.
How do I know if my PC uses MBR or GPT?
In Windows, open Disk Management (right-click Start > Disk Management). Right-click your system disk and select Properties > Volumes tab. Look for “Partition style” – it will say Master Boot Record (MBR) or GUID Partition Table (GPT).
Can I use these steps on Windows 10 and Windows 11?
Yes, the bootrec commands work on both Windows 10 and Windows 11, as well as Windows 8/8.1. The recovery environment is similar across these versions.
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
- Reset Chrome Sync to Fix Problems
- Fix Mouse Not Working in Windows 11
- Fix Windows Defender Failed to Initialize Error
- Change Google Text-to-Speech Voice on Android
- How to Adjust Volume Levels on a Windows PC
- How to Hide or Unhide NFTs on OpenSea Profile