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

開機提示 boot.ini 非法?一鍵還原備份檔解決雙系統殘留引導錯誤

編輯:Windows XP 系統介紹

每次開機出現「boot.ini 非法,系統從 d:\windows 啟動」,隨後正常進入系統。主因:曾安裝雙系統並手動編輯 boot.ini 遺留錯誤參數。Windows 已在 C:\Windows\pps\boot.ini.backup 保留備份,覆蓋即可修復。

修復步驟

  1. 開啟「資料夾選項」→「檢視」→ 勾選「顯示隱藏檔案和資料夾」、取消勾選「隱藏受保護的作業系統檔案」。
  2. 搜尋 boot.ini.backup(通常在 C:\Windows\pps\ 或 C:\)。
  3. 複製並重新命名為 boot.ini,覆蓋 C: 根目錄下的同名檔案。
  4. 重啟驗證錯誤訊息消失。

boot.ini 關鍵參數說明

[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
  • timeout:選單等待秒數。
  • default:預設開機項目 ARC 路徑。
  • multi(0)disk(0)rdisk(0)partition(1):第一顆硬碟第一分區。
  • /noexecute=optin:DEP 資料執行保護模式。

進階:手動重建 boot.ini

若無備份檔,可用 XP 安裝光碟進入「修復模式」(R 鍵),執行:

bootcfg /rebuild

自動掃描安裝的 Windows 並重建 boot.ini。

預防建議

  • 使用 bootcfg /copy 備份正常 boot.ini 至其他位置。
  • 移除舊系統時,優先用「新增/移除程式」或第三方啟動管理工具(EasyBCD),避免手動編輯。
  • 定期檢查 C:\boot.ini 屬性為「唯讀、隱藏、系統」,防誤修改。
Copyright © Windows教程網 All Rights Reserved