The fixmbr command is a Recovery Console command that writes a new master boot record to the hard disk drive that you specify.
This command is only available from within the Recovery Console in Windows 2000 and Windows XP.
Fixmbr Command Syntax
The command takes the following form:
fixmbr device_name
The device_name parameter designates the drive location that a master boot record will be written to. If no device is specified, the master boot record writes to the primary boot drive.
Fixmbr Command Examples
Here are two examples of the fixmbr command to illustrate its usage:
Write MBR to HardDisk0
fixmbr \Device\HardDisk0
In the above example, the master boot record writes to the drive located at \Device\HardDisk0.
Write MBR to Main Drive
fixmbr
:max_bytes(150000):strip_icc():format(webp)/xp-recovery-console-fixmbr-2cb7a1f24df9451d8b732c601f217e0f-d9e4c6ed1336443a979d5adb2b173caa.png)
In this example, the master boot record writes to the device supporting your operating system. If you have a single installation of Windows installed, which is normally the case, running the command in this way is usually the right way to go.
Related Commands
The bootcfg, fixboot, and diskpart commands are often used with the fixmbr command.