Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學

找回被 Windows 8 開機載入程式覆蓋的 GRUB2:自製 GRUB2 開機 USB 救援法

編輯:Win8 系統應用技巧

安裝 Windows 8 後覆蓋 MBR 導致 GRUB2 消失,PE 光碟 GRUB 命令列無法識別 Linux 分區。解決方案:在 Linux 環境(如虛擬機 Ubuntu 12.04)製作 GRUB2 開機 USB,再從 USB 啟動載入原硬碟 GRUB 選單。

製作 GRUB2 開機 USB 步驟

  1. 準備 USB 隨身碟,Linux 下格式化為 MBR 分區表(取消掛載後操作)。
  2. 建立分區(如 FAT32)。
  3. 執行安裝指令:
    sudo grub-install --boot-directory=/media/u --recheck /dev/sdb
    /media/u 為掛載點,/dev/sdb 為 USB 裝置代號。
  4. 無錯誤訊息即安裝成功。

從 USB 啟動並載入原硬碟 GRUB 選單

  1. 重開機從 USB 啟動,進入 GRUB2 命令列。
  2. GRUB2 指令與 GRUB Legacy 不同,關鍵指令:
    set root=(hd0,4) # 原 Linux 根分區(如 sda4)
    normal /boot/grub/grub.cfg # 載入原硬碟 GRUB2 設定檔,直接彈出熟悉選單

關鍵心得:嘗試 linux/initrd 手動載入核心/initrd 進入的是 USB 記憶體盤環境而非硬碟系統。**normal [configfile] 指令可直接載入指定 GRUB 設定檔**,這是恢復原硬碟多重開機選單的正確路徑。

自製 GRUB2 救援 USB 是解決 Windows 覆蓋 MBR 後無法啟動 Linux 的通用急救方案。

Copyright © Windows教程網 All Rights Reserved