Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> Linux 教學

開機出現 GRUB 無法進入 Windows?重寫 MBR 修復雙系統引導完整指南 (fdisk/fixmbr/GRUB 指令/工具法)

編輯:Linux 教學

安裝 Linux 後刪除分區或重裝 Windows,GRUB 殘留導致開機卡在 grub> 提示符。本文提供四種修復 MBR 方案:DOS fdisk /mbr、Linux dd 還原備份、Windows 故障修復主控台 fixmbr/fixboot、第三方工具 Clear MBR、GRUB 指令手動鏈結啟動 Windows。

現象

GNU GRUB version 0.97
grub>_

方案一:DOS fdisk /mbr (需 Win98/DOS 開機碟)

fdisk /mbr

方案二:Linux dd 還原 MBR 備份 (若仍能進 Linux)

dd if=/boot/boot.NNNN of=/dev/hda bs=446 count=1

僅寫入前 446 位元組 (開機碼),保留分區表 (64 位元組) 與結束標記 (2 位元組)。

方案三:Windows 故障修復主控台 (最推薦)

  1. XP 光碟開機 → 選擇修復 (R) → 進入修復主控台。
  2. 輸入 fixboot → fixmbr → 確認覆蓋非標準開機記錄。
  3. 重開機,Windows 開機選單恢復。

亦可預先安裝修復主控台至硬碟:D:\i386\winnt32.exe /cmdcons。

方案四:第三方工具 Clear MBR

下載 clsmbr.exe 直接執行,測試安全有效。

方案五:在 GRUB 提示符手動啟動 Windows

grub> rootnoverify (hd0,0)
grub> chainloader +1
grub> boot

若 (hd0,0) 非 Windows 分區,嘗試 (hd0,1)、(hd0,2)... 直到成功進入 Windows,再執行方案三/四永久修復。

原理說明

MBR (512 位元組) = 開機碼 (446) + 分區表 (64) + 結束標記 (2)。GRUB/LILO 寫入 MBR 取代 Windows 開機碼,修復即還原 Windows 開機碼並保留分區表。

Copyright © Windows教程網 All Rights Reserved