雙系統啟動選單消失是常見痛點。本文提供純指令修復三種常見情境,無需第三方工具,核心工具為 bootsect.exe(寫入啟動區)與 bcdedit(編輯 BCD)。
bootsect.exe(Win7 安裝光碟 boot\ 目錄或網路下載)。XP 安裝覆蓋 MBR,需修復 Win7 啟動區並重建 XP BCD 項。
boot 資料夾,通常為 C:):cd /d c:\bootbootsect /nt60 c:bootsect /nt60 c: /mbrcd /d g:\windows\system32bcdedit /create {ntldr} /d "Windows XP"bcdedit /set {ntldr} device bootbcdedit /set {ntldr} path \ntldrbcdedit /displayorder {ntldr} /addlastbcdedit /timeout 10copy d:\ntldr c:\copy d:\ntdetect.com c:\copy d:\boot.ini c:\c:\boot.ini:將 rdisk(0)partition(1) 改為 XP 實際所在磁碟/分區編號(用磁碟管理確認)。cd /d d:\windows\system32bcdboot d:\windows /l zh-cn /s c:boot 資料夾與 bootmgr)bcdedit 回報失敗 → 加 /store c:\boot\bcd 指定存放位置。bootsect.exe → 從 Win7 安裝媒體複製到 boot\ 目錄。boot.ini 路徑正確、{ntldr} GUID 拼寫無誤。純指令修復,原理透徹,適用無法上網、無法執行圖形工具的環境。