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

WinXP boot.ini 遺失怎麼修復?記事本重建開機選單完整教學

編輯:XP 系統應用技巧

開機出現「NTLDR is missing」、「Boot.ini not found」或直接進不入系統?boot.ini 是 XP/2003 開機載入器的核心設定檔,遺失會導致無法定位作業系統分區。本文教您用記事本在幾分鐘內重建標準 boot.ini,讓系統重新開機。

重建 boot.ini 步驟

  1. 以任何可開機媒體啟動 (XP 安裝光碟進入「修復模式」/ PE 系統/啟動軟碟/另一台正常電腦做啟動 USB)。
  2. 開啟「記事本」 (notepad)。
  3. 貼入以下標準內容 (單一 XP 專業版安裝在第一磁碟第一分區):
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS

[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
  1. 「檔案」→「另存新檔」→ 存放位置選擇系統磁碟根目錄 (通常 C:\) → 檔名 boot.ini → 存檔類型「所有檔案」 → 存檔。
  2. 重開機,系統應正常顯示開機選單並進入 XP。

參數詳細說明

參數含義
timeout=30開機選單等待秒數,0 為直接進入預設項
default=...預設開機項目 ARC 路徑
multi(0)IDE/SCSI/SATA 控制器編號 (通常 0)
disk(0)實體磁碟編號 (第一顆 0)
rdisk(0)磁碟機編號 (第一顆 0)
partition(1)分區編號 (第一分區 1,非 0)
/noexecute=optin啟用 DEP (資料執行防護) 選擇性模式
/fastdetect跳過序列埠/並行埠偵測,加速開機

多重開機 / 非標準分區調整

  • XP 安裝在第二分區 → partition(2)。
  • 第二顆硬碟 → disk(1) / rdisk(1)。
  • 共存 Win7/10 → 需使用 EasyBCD/BCDEdit 管理 BCD,而非 boot.ini (Vista 後棄用 boot.ini)。
  • 不確定 ARC 路徑 → 在修復模式命令列執行 bootcfg /list 或 bootcfg /rebuild 自動掃描重建。

進階:用 bootcfg 指令自動重建 (修復模式)

  1. XP 光碟啟動 → 「R」進入修復模式 → 選擇安裝 → 輸入管理員密碼。
  2. 執行 bootcfg /rebuild → 掃描到 XP 安裝 → 輸入 Y → 載入識別名 (如 "Microsoft Windows XP Professional") → 輸入啟動參數 /noexecute=optin /fastdetect → 完成。

無論手動記事本重建或 bootcfg 自動掃描,幾分鐘即可修復遺失的 boot.ini,讓 XP 重獲新生。

Copyright © Windows教程網 All Rights Reserved