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

重灌系統出現「error 15: file not found」?GRUB 命令列手動指定核心開機

編輯:系統常見問題解答

使用 USB 重灌 Linux 或多重開機系統後,重開機卡在 GRUB 畫面顯示 error 15: file not found,代表開機載入器找不到核心映像檔(vmlinuz)或 initrd。別慌,進入 GRUB 命令列手動指定路徑即可救援。

錯誤成因

  • menu.lst / grub.cfg 設定錯誤(根分區 UUID/標籤不符)。
  • 核心更新後開機選單未同步。
  • 分區表變動導致 (hd0,0) 對應錯誤。

GRUB 命令列救援步驟(以傳統 GRUB Legacy 為例)

  1. 開機出現 GRUB 選單時,按任意鍵停止倒數,再按 C 進入命令列。
  2. 輸入 root (hd0,0) → Enter(確認系統分區,通常是第一顆硬碟第一個分區)。
  3. 輸入 kernel (hd0,0)/boot/ → 按 Tab 自動列出可用核心檔(如 vmlinuz-2.6.9-42.ELsmp)。
  4. 完整輸入核心參數:
    kernel (hd0,0)/boot/vmlinuz-2.6.9-42.ELsmp ro root=LABEL=/ vga=0x317 → Enter
  5. 輸入 initrd 對應檔:
    initrd (hd0,0)/boot/initrd-2.6.9-42.ELsmp.img → Enter
  6. 輸入 boot → Enter 開機。

GRUB error 15 錯誤畫面

進入系統後必做:永久修復 GRUB 設定

  1. 編輯 /boot/grub/menu.lst(或 /etc/default/grub + update-grub)。
  2. 確認 root、kernel、initrd 路徑正確,root= 參數建議用 UUID(blkid 查詢)。
  3. 執行 grub-install /dev/sda 重寫 MBR。

補充:GRUB 2 (現代主流) 救援指令

set root=(hd0,1)
linux /boot/vmlinuz-xxx root=UUID=xxxx ro
initrd /boot/initrd-xxx.img
boot

原理相同,語法略異。建議平時備份 /boot/grub/grub.cfg,關鍵時刻可直接複製還原。

Copyright © Windows教程網 All Rights Reserved