Khắc phục lỗi "Total Identified Windows Installations: 0" trong môi trường khôi phục
Lỗi xuất hiện khi boot từ media cài Windows chọn Repair → Command Prompt chạy bootrec /rebuildbcd nhưng báo 0 cài đặt Windows. Dù Windows thực tế vẫn còn trên ổ cứng. Cần media cài Windows (USB/DVD) để sửa.
Chuẩn bị: Tạo Windows Installation Media
- Tải Media Creation Tool từ Microsoft.
- Chạy tool → Accept → chọn Create installation media for another PC.
- Bỏ tích Use recommended options → chọn Language, Edition, Architecture (64-bit) khớp máy hỏng.
- Chọn USB flash drive (hoặc ISO burn ra DVD) → chọn USB → Next đợi tạo xong.
Giải pháp 1: Khôi phục Registry (Registry Recovery)
Sửa các entry Registry hỏng trong C:\Windows\System32\config bằng bản backup trong C:\Windows\tmp.
- Boot từ USB cài Windows → chọn Repair your computer.
- Troubleshoot → Advanced Options → Command Prompt.
- Chạy lệnh điều hướng & thay thế 5 file Registry:
cd windows cd system32 cd config del c:\windows\system32\config\sam del c:\windows\system32\config\security del c:\windows\system32\config\software del c:\windows\system32\config\default del c:\windows\system32\config\system copy c:\windows\tmp\software c:\windows\system32\config\software copy c:\windows\tmp\system c:\windows\system32\config\system 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
- Restart → boot bình thường (không cắm USB) test.
Giải pháp 2: Boot Recovery (Sửa BCD - Boot Configuration Data)
Rebuild BCD store từ đầu.
- Boot USB → Repair → Troubleshoot → Advanced Options → Command Prompt.
- Chạy:
bootrec /rebuildbcd→ sẽ báo "Total identified Windows installations: 0". - Chạy lần lượt để backup & rebuild BCD:
bcdedit /export c:\bcdbackup attrib c:\boot\bcd -h -r -s ren c:\boot\bcd bcd.old bootrec /rebuildbcd
- Lúc này sẽ thấy: "Total identified Windows installations: 1 [1] D:\Windows Add installation to boot list? Yes/No/All:" → gõ Y → Enter.
- Thông báo "The operation completed successfully" → restart → boot bình thường.