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

Windows XP 登錄檔損毀無法開機?完整修復指南與資料救援步驟

編輯:XP 常見問題解答

前言

當 Windows XP 因登錄檔損毀而無法啟動時,螢幕通常會顯示「Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM」或類似的錯誤訊息。本文提供兩階段修復方案:首先透過修復主控台還原初始安裝時的登錄檔以讓系統能開機,再利用系統還原備份找回較新的設定。雖無法保證 100% 還原至故障前狀態,但能最大程度保全資料。

常見錯誤代碼

  • Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SYSTEM
  • Windows XP could not start because the following file is missing or corrupt: \WINDOWS\SYSTEM32\CONFIG\SOFTWARE
  • Stop: c0000218 {Registry File Failure} The registry cannot load the hive (file): \SystemRoot\System32\Config\SOFTWARE
  • System error: Lsass.exe - When trying to update a password the return status indicates that the value provided as the current password is not correct.

第一階段:修復主控台還原出廠登錄檔

此階段會建立一個臨時資料夾備份現有登錄檔,刪除損毀的登錄檔,並從 C:\Windows\Repair 複製安裝時的原始登錄檔到 System32\Config。完成後系統可啟動,但安裝後的所有變更將遺失。

操作步驟

  1. 插入 Windows XP 安裝光碟或開機磁碟,重新啟動電腦並設定從光碟開機。
  2. 出現「歡迎使用安裝程式」畫面時,按 R 進入修復主控台。
  3. 若為多重開機,選擇欲修復的安裝項目。
  4. 輸入系統管理員密碼(若無密碼直接按 Enter)。
  5. 在命令提示字元依序輸入以下指令(每行結尾按 Enter):
md tmp
copy c:\windows\system32\config\system c:\windows\tmp\system.bak
copy c:\windows\system32\config\software c:\windows\tmp\software.bak
copy c:\windows\system32\config\sam c:\windows\tmp\sam.bak
copy c:\windows\system32\config\security c:\windows\tmp\security.bak
copy c:\windows\system32\config\default c:\windows\tmp\default.bak

delete c:\windows\system32\config\system
delete c:\windows\system32\config\software
delete c:\windows\system32\config\sam
delete c:\windows\system32\config\security
delete c:\windows\system32\config\default

copy c:\windows\repair\system c:\windows\system32\config\system
copy c:\windows\repair\software c:\windows\system32\config\software
copy c:\windows\repair\sam c:\windows\system32\config\sam
copy c:\windows\repair\security c:\windows\system32\config\security
copy c:\windows\repair\default c:\windows\system32\config\default
  1. 輸入 exit 離開修復主控台,電腦將重新啟動。
> **注意**:上述路徑預設 Windows 安裝在 C:\Windows,若安裝在其他資料夾請自行調整路徑。

批次檔加速操作

若有另一台電腦可用,可將上述指令存為 Regcopy1.txt,在修復主控台執行 batch regcopy1.txt 一鍵完成所有指令。

第二階段:系統還原找回近期設定

此階段需以系統管理員身分登入 Windows(Home Edition 需進入安全模式)。目標是從 System Volume Information 內的還原點提取較新的登錄檔備份,取代第一階段複製的出廠版登錄檔。

前置準備:顯示隱藏系統資料夾

  1. 開啟「Windows 檔案總管」→「工具」→「資料夾選項」→「檢視」標籤。
  2. 勾選「顯示所有檔案和資料夾」,取消勾選「隱藏受保護的作業系統檔案(建議)」,確認「是」。

提取還原點登錄檔

  1. 進入系統磁碟根目錄,開啟 System Volume Information 資料夾(灰色超級隱藏資料夾)。
  2. 內含一或多個 _restore{GUID} 資料夾,展開後會看到 RPx 開頭的還原點資料夾。
  3. 選擇一個較早的還原點(避免時間戳記與當前相同的最新資料夾),進入其 Snapshot 子資料夾。路徑範例:
    C:\System Volume Information\_restore{D86480E3-73EF-47BC-A0EB-A81BE6EE3ED8}\RP1\Snapshot
  4. 將以下 5 個檔案複製到 C:\Windows\Tmp:
    _REGISTRY_USER_.DEFAULT
    _REGISTRY_MACHINE_SECURITY
    _REGISTRY_MACHINE_SOFTWARE
    _REGISTRY_MACHINE_SYSTEM
    _REGISTRY_MACHINE_SAM
  5. 重新命名這 5 個檔案(去除前綴與底線):
    DEFAULT、SECURITY、SOFTWARE、SYSTEM、SAM
> **關鍵提醒**:這些檔案是系統還原建立的備份登錄檔。第一階段使用的出廠登錄檔不包含這些還原點資訊,系統會在 System Volume Information 建立新的 GUID 資料夾,因此絕不可使用最新的還原點資料夾。

將修復後的登錄檔寫回系統

  1. 重新啟動電腦,再次進入修復主控台。
  2. 執行以下指令,將 C:\Windows\Tmp 中的 5 個檔案覆蓋 C:\Windows\System32\Config:
copy c:\windows\tmp\system c:\windows\system32\config\system
copy c:\windows\tmp\software c:\windows\system32\config\software
copy c:\windows\tmp\sam c:\windows\system32\config\sam
copy c:\windows\tmp\security c:\windows\system32\config\security
copy c:\windows\tmp\default c:\windows\system32\config\default
  1. 輸入 exit 重新啟動,系統應可載入較完整的登錄檔啟動。

NTFS 磁碟的額外處理

若系統磁碟為 NTFS 格式,預設無法在修復主控台直接存取 System Volume Information。請參考 Microsoft 知識庫 KB309531 取得存取權限,或於第二階段在 Windows 環境下完成檔案複製後再進入修復主控台寫回。

後續建議

修復完成後,建議立即備份重要資料,並執行 sfc /scannow 檢查系統檔案完整性。若問題頻繁發生,請考慮安裝 Microsoft 修補程式(KB318159)或重新安裝系統。

Copyright © Windows教程網 All Rights Reserved