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

移除 Linux 後刪除 GRUB 開機選單四大實戰方案:fdisk/mbr、dd 還原、Clear MBR 工具、GRUB 命令列引導 Windows

編輯:Linux 教學

移除 Linux 分區後,GRUB 仍殘留 MBR 導致無法直入 Windows。四種修復方案:

方案一:DOS fdisk /mbr (最經典)

Win98/DOS 開機碟啟動至純 DOS,執行 fdisk /mbr 重寫 MBR 開機程式碼,保留分區表。

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

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

boot.NNNN 為安裝 Linux 前備份的完整 MBR。僅寫前 446 Bytes 開機程式碼,避免覆寫分區表 (後 66 Bytes)。

方案三:Clear MBR 0.9 工具 (圖形化/免 DOS)

直接執行 clsmbr.exe 一鍵清除 MBR 開機程式碼,經測試安全無毒。

方案四:GRUB 命令列手動啟動 Windows (已刪 Linux 分區、卡在 grub>)

grub> rootnoverify (hd0,0)   # 設第一顆硬碟第一分區為根 (不掛載 FS)
grub> chainloader +1         # 移交啟動權給該分區首扇區 (Windows VBR)
grub> boot                   # 啟動 Windows
# 若失敗,嘗試 (hd0,1)、(hd0,2)... 直到成功

進入 Windows 後,建議再執行方案三徹底清除 GRUB 殘留。

Copyright © Windows教程網 All Rights Reserved