GRUB2 無法讀取 Kernel 的問題

如果換硬碟之類的動作,造成 Linux 在開機時無法讀取 Kernel,可以在開機時的 GRUB 2 選單按下小寫的 e,進入 edit 模式,然後在 set root= 這邊改成正確的硬碟與分區,對 GRUB2 而言, 第一顆碟碟的代號是 0,第一個磁區則是 1。

在 linux16 這邊指定 kernel 版本名稱與 root 路徑

linux6 /vmlinuz-3.10.x.x.x.el7.x86_64 root=/dev/sdXY ro


在 initrd16 這邊指定 kernel 的 image 檔

initrd16 /initramfs-3.10.x.x.x.el7.x86_64.img

參考資料:

Load kernel and boot your system with GRUB2

wade Written by:

本站站長