重裝 XP 後開機黑底白字報錯:Windows could not start because the following file is missing or corrupt: <Windows root>\system32\hal.dll。hal.dll(Hardware Abstraction Layer,硬體抽象層)是 NT 核心負責硬體平台差異的核心驅動,損壞多因多重開機設定錯誤、磁碟錯誤、病毒感染。
I386 目錄取得 hal.dll(或源檔 halacpi.dll、halaacpi.dll、halmacpi.dll、halmps.dll、halsp.dll 依 HAL 類型而異)。C:\Windows\system32\hal.dll(覆蓋)。cd \windows\system32
ren hal.dll hal.dll.bak
expand D:\i386\halacpi.dl_ hal.dll (D 為光碟機代號,視實際調整)
# 若系統為多處理器/ACPI 不同 HAL,嘗試展開對應源檔:
# expand D:\i386\halaacpi.dl_ hal.dll
# expand D:\i386\halmacpi.dl_ hal.dll
exit
若能進安全模式(開機按 F8),直接在安全模式下複製 hal.dll 覆蓋,再重開機。
| 電腦類型(裝置管理員) | HAL 檔案名 | 源檔(I386 內) |
|---|---|---|
| 標準 PC | hal.dll | halacpi.dl_ |
| ACPI 單處理器 PC | hal.dll | halaacpi.dl_ |
| ACPI 多處理器 PC | hal.dll | halmacpi.dl_ |
| MPS 多處理器 PC | hal.dll | halmps.dl_ |
| 單處理器 PC(非 ACPI) | hal.dll | halsp.dl_ |
注意: 系統分區為 NTFS 且無法進入任何模式時,修復主控台需啟用 set AllowAllPaths = TRUE 才能寫入系統目錄,或直接用 WinPE/外掛硬碟盒在其他電腦替換。