雙系統 (Linux + Windows) 環境下,誤刪分區、更新核心、重裝系統等操作可能導致 GRUB 損壞,開機直接進入 grub> 提示符無法進入 Windows。本文教您**三行指令臨時進入 Windows**,再用 **EasyBCD 重寫 MBR 徹底修復**。
grub> 或 grub rescue> 提示符在 grub> 提示符下依序輸入:
grub> find --set-root /bootmgr
grub> chainloader /bootmgr
grub> boot
原理: find 定位含 bootmgr 的分區 (Windows 開機分區) 設為根裝置;chainloader 載入 Windows 開機管理程式;boot 執行啟動。
注意: 若為 grub rescue> 模式 (功能受限),需先載入模組:
grub rescue> set prefix=(hd0,1)/boot/grub # 根據實際分區調整
grub rescue> insmod normal
grub rescue> normal
# 進入 grub> 後再執行上述三行
# Legacy/BIOS 模式
bootrec /fixmbr
bootrec /fixboot
bootrec /scanos
bootrec /rebuildbcd
# UEFI 模式 (需掛載 EFI 分區)
diskpart
select disk 0
list partition
select partition
assign letter=Z
exit
bcdboot C:\Windows /s Z: /f UEFI
若想保留 GRUB 選單啟動 Linux/Windows:
grub-install /dev/sda (重裝 GRUB 到 MBR)update-grub (掃描並加入 Windows 開機項目,需 os-prober 套件)/etc/grub.d/40_custom 正確 chainloaddd if=/dev/sda of=/backup/mbr_backup bs=512 count=1grub-install 確保 MBR 同步掌握「臨時進系統 + 根治 MBR」雙階段策略,GRUB 故障不再恐慌。