中英文解析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.
     若是鎖定成功,強制刪除將啓用獨佔卷訪問權限和可靠的啓動代碼更新,即便初始鎖定失敗。同時,強制卸載會致使全部目標捲上打開的 文件句柄失效。這可能致使打開這些文件的程序產生不可預料的行爲。所以要謹慎地使用該選項。
相關文章
相關標籤/搜索