中英文解析bootsect.exe命令的使用

bootsect.exe(boot sector)是Windows vista/7中光盘中自带的一个程序,字面解释是引导扇区修复工具(boot sector restoration tool),是位于安装光盘boot目录下,体积很小,不到100kb,但却很实用。
语法为:bootsect {/help/nt60/nt52}{sys或all}[/force] [/mbr]

  用途:为硬盘分区更新主引导代码,以实现bootmgr 和ntldr启动方式之间的转换
  /help 帮助
  /nt60 使用基于内核为nt60的操做系统的主引导代码,有:Windows vista和Windows7等
  引导文件为 bootmgr
  /nt52 使用基于内核为nt52的操做系统的主引导代码,即:Windows xp
  引导文件为 ntldr
  sys 更新主引导代码到系统分区,用于启动系统
  all把引导代码加到能够做为Windows 系统分区的卷。
  /force 强制卸下该卷
  /mbr 更新主引导记录

结合英文说明的详解

    英文原版的说明:(使用命令bootsect /?)
     bootsect {/help|/nt60|/nt52} {SYS|ALL|<DriveLetter>:} [/force]Boot sector restoration tool
     Bootsect.exe updates the master boot code for hard disk partitions in order to switch between BOOTMGR and NTLDR. You can
     use this tool to restore the boot sector on your computer.
       翻译:
     bootsect命令使用格式:
     bootsect {/help|/nt60|/nt52} {SYS|ALL|<DriveLetter>:} [/force]Boot sector restoration tool
         bootsect工具说明:
     bootsect.exe更改硬盘分区的主启动代码以便在ntlder和bootmgr之间切换,可使用此工具修改计算机硬盘的启动扇区。
     例如:Drive:\boot\Bootsect.exe /NT60 All 的做用以下:使用 Bootsect.exe 还原 Windows Vista MBR 以及将控制权转给 Windows 启动管理器程序。
     具体参数解释:
   命令描述 /help 显示这些用法说明。
      /nt52 将与 NTLDR 兼容的主启动代码应用到 SYS、ALL 或 <DriveLetter>。在 SYS、ALL 或 <DriveLetter> 上安装的操做系统必须是之前版 本的 Windows。
     /nt60 将与 BOOTMGR 兼容的主启动代码应用到 SYS、ALL 或 <DriveLetter>。在 SYS、ALL 或 <DriveLetter> 上安装的操做系统必须是 Windows Vista或Win7。
     SYS 更新用于启动 Windows 的系统分区上的主启动代码。 ALL 更新全部分区上的主启动代码。
     ALL 没必要更新每一个卷的启动代码。相反,该选项将更新可用做 Windows 启动卷(不包括没有与基础磁盘分 区链接的动态卷)的卷上的启动代码。存在此限制是由于启动代码必须位于磁盘分区的起始处。
     <DriveLetter>更新与此驱动器号关联的卷上的主启动代码。在如下两种状况下,不会更新启动代码:
   1) <DriveLetter> 与卷没有关联;
   2) <DriveLetter> 与未链接到基础磁盘分区的卷相关联。
     /force 在启动代码更新期间强制卸除卷。必须谨慎使用该选项。若是 Bootsect.exe 没法得到独占的卷访问权限,则文件系统可能在下一次重 新启动前覆盖启动代码。Bootsect.exe 始终会在每次更新前尝试锁定和卸除卷。当指定 /force 时,若是初始的锁定尝试失败,将尝试强制卸 除。例如,若是目标卷上的文件当前已被其余程序打开,则锁定可能会失败。 若是锁定成功,强制卸除将启用独占卷访问权限和可靠的启动代 码更新,即便初始锁定失败。同时,强制卸除将使指向目标卷上文件的全部打开的句柄无效。这能够致使来自打开这些文件的程序的意外行为
   。所以要慎使用该选项。
   英文原版:
   /help   Displays these usage instructions.显示该命令的使用说明
   /nt52   Applies the master boot code that is compatible with NTLDR to SYS,ALL, or<DriveLetter>. The operating system installed on SYS, ALL, or <DriveLetter> must be older than Windows Vista.将与NTLDR兼容的主启动代码应用到SYS,ALL或<DriverLetter>,安装在
   SYS,ALL或<DriverLetter>上的操做系统应该是Vista以前的版本。换句话说就是/nt52应该用于vista以前的xp,2003等操做系统的启动引导。
   /nt60   Applies the master boot code that is compatible with BOOTMGR to SYS,  ALL, or <DriveLetter>. The operating system installed on SYS, ALL, or  <DriveLetter> must be Windows Vista or WindowsServer “Longhorn”.将与BootMgr兼容的主启动代码应用到SYS,ALL或 <DriverLetter>,安装在SYS,ALL或<DriverLetter>上的操做系统应该是Vista或者服务器Longhorn版本。换句话说就是/nt60应用在这些系统 的启动引导。
   SYS      Updates the master boot code on the system partition used to boot。Windows.修改用于启动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 could be used as Windows boot volumes, which excludes any dynamic volumes that are not           connected with an underlying disk partition. This restriction is present because boot code must be located at the beginning of a disk partition.修改全部分区的主启动代码。ALL没必要要修改每一个卷的主启动代码。相反的,这个选项修改能够用作windows启动卷的启 动代码(不包括没有与基础磁盘分区链接的动态卷)。有这个限制是由于启动代码必须位于磁盘分区的开始处。
   <DriverLetter>   Updates the master boot code on the volume associated with this drive letter. Boot code will not be updated if either 1) is not associated with a volume or 2) is associated with a volume not connected to an underlying disk partition.
      修改与此驱动器号关联的卷上的主启动代码。在如下两种状况下,不会更新主启动代码:1). 此驱动器号没有关联卷 2). 与未链接到基 本磁盘分区的卷关联。
   /force      Forcibly dismounts the volume(s) during the boot code update. You should use this option with caution. 
     在启动代码更新期间强制卸除卷。必须谨慎使用该选项。
     If Bootsect.exe cannot gain exclusive volume access then the file system may overwrite the boot code before the next reboot.
     若是Bootsect.exe不能得到独占的卷访问权限,则文件系统可能在下一次重启以前覆盖启动代码。
     Bootsect.exe always attempts to lock and dismount the volume before each update. When /force is specified, a forced dismount is attempted if the initial lock attempt fails. A lock can fail, for example, if files on the target volume are currently opened by other programs.Bootsect.exe
     在每一次更新以前老是尝试锁定和卸载卷。当/force被指定时,若是锁定尝试失败,一个强制的卸载将会被尝试。锁定会有失败的状况, 例如,若是目标卷上的文件爱你正被其余的程序打开。
     When successful, a forced dismount allows exclusive volume access and a reliable boot code update even though the initial lock failed. At the same time, a forced dismount invalidates all open handles to files on the target volume. This could result in unexpected behavior from the programs that opened these files. Therefore, you should use this option with caution.
     若是锁定成功,强制删除将启用独占卷访问权限和可靠的启动代码更新,即便初始锁定失败。同时,强制卸载会致使全部目标卷上打开的 文件句柄失效。这可能致使打开这些文件的程序产生不可预料的行为。所以要谨慎地使用该选项。
相关文章
相关标签/搜索