Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

不裝軟體手動修復 Win7+XP 雙系統啟動:三種情境(先裝 Win7 再裝 XP、Ghost XP、Ghost Win7)完整 bcdedit/bootsect 實戰指令

編輯:Win7 系統基礎知識

雙系統啟動選單消失是常見痛點。本文提供純指令修復三種常見情境,無需第三方工具,核心工具為 bootsect.exe(寫入啟動區)與 bcdedit(編輯 BCD)。

共同準備

  • 取得 bootsect.exe(Win7 安裝光碟 boot\ 目錄或網路下載)。
  • 以管理員身分開啟 CMD。

情境一:先裝 Win7 (C:),再正常安裝 XP (D:)

XP 安裝覆蓋 MBR,需修復 Win7 啟動區並重建 XP BCD 項。

  1. 進入啟動主分區(含 boot 資料夾,通常為 C:):
    cd /d c:\boot
  2. 寫入 Win7 啟動碼:
    bootsect /nt60 c:
    bootsect /nt60 c: /mbr
  3. 進 Win7 系統目錄(假設 Win7 在 G:):
    cd /d g:\windows\system32
  4. 重建 XP BCD 項:
    bcdedit /create {ntldr} /d "Windows XP"
    bcdedit /set {ntldr} device boot
    bcdedit /set {ntldr} path \ntldr
    bcdedit /displayorder {ntldr} /addlast
    bcdedit /timeout 10

情境二:先裝 Win7 (C:),再 Ghost XP (D:)(XP 缺啟動檔)

  1. 複製 XP 啟動檔到 C::
    copy d:\ntldr c:\
    copy d:\ntdetect.com c:\
    copy d:\boot.ini c:\
  2. 修改 c:\boot.ini:將 rdisk(0)partition(1) 改為 XP 實際所在磁碟/分區編號(用磁碟管理確認)。
  3. 管理員 CMD 重建 BCD 項(同情境一步驟 3-4)。

情境三:XP 在 C:,Ghost Win7 在 D:(Win7 缺啟動環境)

  1. 在 XP (C:) 重建 Win7 啟動環境:
    cd /d d:\windows\system32
    bcdboot d:\windows /l zh-cn /s c:
    (C: 產生 boot 資料夾與 bootmgr)
  2. 寫入 Win7 啟動碼(同情境一步驟 2)。
  3. 重建 XP BCD 項(同情境一步驟 3-4,但 Win7 路徑改為 D:)。

常見錯誤與對策

  • bcdedit 回報失敗 → 加 /store c:\boot\bcd 指定存放位置。
  • 找不到 bootsect.exe → 從 Win7 安裝媒體複製到 boot\ 目錄。
  • 修復後仍無選單 → 確認 boot.ini 路徑正確、{ntldr} GUID 拼寫無誤。

純指令修復,原理透徹,適用無法上網、無法執行圖形工具的環境。

Copyright © Windows教程網 All Rights Reserved