SDB:修復 GRUB

跳转至: 导航, 搜索
适用于 openSUSE 11.3,11.4 会换用GRUB2,到时候管理员删除该页面。

openSUSE livecd 引导进入系统,然后终端输入:

su
grub
find /boot/grub/menu.lst
(hd0,8)

记住返回值,这里是(hd0,8),随后继续输入:

root (hd0,8)
setup (hd0)

GRUB 显示成功:

grub> setup (hd0)
 Checking if "/boot/grub/stage1" exists... yes
 Checking if "/boot/grub/stage2" exists... yes
 Checking if "/boot/grub/e2fs_stage1_5" exists... yes
 Running "embed /boot/grub/e2fs_stage1_5 (hd0)"...  17 sectors are embedded.
succeeded
 Running "install /boot/grub/stage1 (hd0) (hd0)1+17 p (hd0,8)/boot/grub/stage2 /boot/grub/menu.lst"... succee
ded
Done.