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

單一分區安裝 Win7 + XP 雙系統進階實戰:修改安裝路徑+BCD 引導修復

編輯:XP 系統基礎知識

核心差異點

本文與前文(ID 56376)同屬單分區雙系統,但採用 BCDedit 命令修復引導 而非編輯 boot.ini,適用於 Win7 為主控引導的現代雙系統架構。

關鍵步驟:XP 安裝路徑重導向

  1. 解壓 XP ISO → 編輯 I386\WINNT.SIF:
    TargetPath="\WinXP\Windows"
    ProgramFilesDir="\WinXP\Program Files"
    CommonProgramFilesDir="\WinXP\Program Files\Common Files"
  2. 編輯 I386\HIVESFT.INF:
    DEFAULT_PROFILES_DIR="%SystemDrive%\WinXP\Documents and Settings"

安裝流程

  1. PE 下格式化 C: 為 NTFS。
  2. 安裝修改版 XP → 自動安裝至 C:\WinXP\。
  3. XP 下掛載 Win7 ISO → Setup.exe 安裝至 C:(覆蓋引導區,建立 BCD)。
  4. 進入 Win7 → 顯示隱藏系統檔 → 編輯 C:\Boot.ini.saved 重建 C:\Boot.ini(指向 \WinXP\WINDOWS)。

關鍵:BCD 引導項修復(管理員 CMD)

bcdedit /create {legacy} /d "Windows XP"
bcdedit /set {legacy} device boot
bcdedit /set {legacy} path \ntldr
bcdedit /displayorder {legacy} /addlast

執行完畢重啟,啟動選單將出現「Windows XP」選項。

必要檔案複製(避免 XP 啟動缺檔)

將 C: 根目錄下 ntldr、NTDETECT.COM、boot.ini 複製到 C:\WinXP\;
將 C:\Windows\System32\winload.exe 複製到 C:\WinXP\Windows\System32\。

成功驗證

重啟 → 啟動選單顯示「Windows 7」與「Windows XP」雙選項,任選一項均可正常進入桌面。

風險提示

  • 修改 BCD 錯誤可導致雙系統均無法啟動,操作前請備份 BCD(bcdedit /export backup.bcd)。
  • XP 必須安裝在主動分區(通常為 C:),否則 ntldr 無法載入。
Copyright © Windows教程網 All Rights Reserved