Fixmbr Command (Recovery Console)

Use the 'fixmbr' command in the Windows XP Recovery Console

The fixmbr command is a Recovery Console command that writes a new master boot record to the hard disk drive that you specify.

The fixmbr 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

Two examples of the command illustrate its usage.

fixmbr \Device\HardDisk0

In the above example, the master boot record writes to the drive located at \Device\HardDisk0.

fixmbr

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 fixmbr command in this way is usually the right way to go.

The bootcfg, fixboot, and diskpart commands are often used with the fixmbr command.