How to Write a New Partition Boot Sector in Windows

Use the BOOTREC Command to Fix Issues With the Partition Boot Sector

Writing a New Partition Boot Sector (Windows 10)
Screenshot of the bootrec /fixboot command in Windows 10

If the partition boot sector becomes corrupted or misconfigured in some way, Windows will not be able to start properly, prompting an error like BOOTMGR is Missing very early in the boot process.

The solution to a damaged partition boot sector is to overwrite it with a new, properly configured one using the bootrec command, a relatively easy process that anyone can do.

Important: The following instructions apply only to Windows 10Windows 8, Windows 7, and Windows Vista.

Boot sector issues also occur in Windows XP but the solution involves a different process. See How To Write a New Partition Boot Sector in Windows XP for help.

Time Required: It'll take around 15 minutes to write a new partition boot sector to your Windows system partition.

How To Write a New Partition Boot Sector in Windows 10, 8, 7 or Vista

  1. Start Advanced Startup Options (Windows 10 & 8) or System Recovery Options (Windows 7 & Vista).
     
  2. Open Command Prompt.

    Note: The Command Prompt available from the Advanced Startup Options and System Recovery Options menus is similar to the one available from within Windows and works very similarly between operating systems.
     
  3. At the prompt, type the bootrec command as shown below and then press Enter:
    bootrec /fixboot
    The bootrec command will write a new partition boot sector to the current system partition. Any configuration or corruption issues with the partition boot sector that might have existed are now corrected.
     
  1. You should see the following message at the command line:
    The operation completed successfully.
    and then a blinking cursor at the prompt.
     
  2. Restart your computer with Ctrl-Alt-Del or manually via the reset or power button.

    Assuming that a partition boot sector issue was the only problem, Windows should start normally now. If not, continue to troubleshoot whatever specific issue you're seeing that's preventing Windows from booting normally.

    Important: Depending on how you started Advanced Startup Options or System Recovery Options, you may need to remove a disc or flash drive before restarting.
    Was this page helpful?