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 連安全模式都無法進入時,「故障修復控制台」是最後一道防線。它能啟用/停用服務、格式化磁碟、讀寫 NTFS 分區、修復開機磁區等,是系統管理者的必備利器。

一、進入故障修復控制台

  1. 開機選單選擇「Microsoft Windows Recovery Console」(需預先安裝或用 XP 光碟開機選「R」進入修復模式)。
  2. 輸入 Administrator 密碼(若無密碼直接按 Enter)。
  3. 命令提示符出現後,輸入 help 可列出所有指令;help 指令名稱 可看詳細說明。

二、常用修復指令速查

指令用途關鍵參數範例
Attrib變更檔案屬性attrib -h -r -s c:\boot.ini
Batch執行文字檔內的指令批次batch commands.txt
Bootcfg修復/重建 boot.inibootcfg /rebuild
Chkdsk檢查磁碟錯誤chkdsk /p /r
Copy複製檔案(支援展開壓縮檔)copy d:\i386\ntldr c:\
Delete (Del)刪除檔案del c:\virus.exe
Dir列出目錄內容dir c:\windows
Disable停用服務/驅動disable sptd
Enable啟用服務/驅動enable intelppm SERVICE_BOOT_START
Expand解壓縮系統檔expand d:\i386\hal.dl_ c:\windows\system32\hal.dll
Fixboot寫入新的分區開機磁區fixboot c:
Fixmbr修復主開機記錄 (MBR)fixmbr \device\harddisk0
Format格式化磁碟分區format c: /fs:ntfs
Diskpart建立/刪除磁碟分區見下文詳細說明

三、重點指令深度解析:Diskpart

功能:在故障修復控制台中建立或刪除硬碟分區。
語法:Diskpart [/add | /delete] [device_name | drive_name | partition_name] [size]

  • 無參數:啟動 Diskpart 互動模式(字元介面)。
  • /add:建立新分區,需指定 size(單位 MB)。
  • /delete:刪除既有分區,指定 drive_name(如 E:)或 partition_name。
  • size:僅搭配 /add 使用,指定新分區大小(MB)。

範例:
建立 5000 MB 新分區:diskpart /add \device\harddisk0 5000
刪除 D 槽分區:diskpart /delete D:

四、實戰情境範例

  1. 修復損毀的 boot.ini:bootcfg /rebuild 掃描所有 Windows 安裝並重建開機選單。
  2. 還原遺失的 NTLDR/NTDETECT.COM:copy d:\i386\ntldr c:\、copy d:\i386\ntdetect.com c:\(假設光碟機為 D:)。
  3. 停用導致藍屏的驅動:disable 裝置名稱,重開機進入系統後再更新驅動。
  4. 修復 MBR:fixmbr 針對主開機記錄損毀導致無法開機。

熟練這些指令,下次系統嚴重當機時就能從容應對,挽救珍貴資料。

Copyright © Windows教程網 All Rights Reserved