Bootsect.exe updates the master boot code for hard disk partitions to switch between BOOTMGR and NTLDR. Use this utility to restore the boot sector on the computer.

For more information on Bootsect.exe, see the section, "Bootsect Command-Line Options," in the Windows Preinstallation Environment (Windows PE) User’s Guide.

 

Value

Description

Location

distribution\Tools\platform

Use

bootsect.exe /nt52 C:

Arguments

Value

Description

/Help

Displays the use instructions listed here.

/nt52

Applies the master boot code compatible with NTLDR to SYS, ALL, or DriveLetter. The operating system installed on SYS, ALL, or DriveLetter must be an earlier version of Windows Vista.

/nt60

Applies the master boot code compatible with BOOTMGR to SYS, ALL, or DriveLetter. The operating system installed on SYS, ALL, or DriveLetter must be Windows Vista.

SYS

Updates the master boot code on the system partition used to boot Windows.

All

Updates the master boot code on all partitions. ALL does not necessarily update the boot code for each volume. Instead, this option updates the boot code on volumes that can be used as Windows boot volumes, which excludes any dynamic volumes not connected with an underlying disk partition. This restriction is present, because the boot code must be located at the beginning of a disk partition.

DriveLetter

Updates the master boot code on the volume associated with this drive letter. The boot code will not be updated if either (1) DriveLetter is not associated with a volume or (2) DriveLetter is associated with a volume not connected to an underlying disk partition.

/Force

Forcibly dismounts the volumes during the boot code update. Use this option with caution.

 

Related Topics

Utilities