Linux下Grub文件异常会导致开机进入命令提示符grub>...状态,修复过程:
1.插入linux安装光盘/修复盘,按F4,后输入linux rescue ->回车;
2.grub ->回车,敲下回车键后,回出现grub>,这就进入了修复;
3.下面开始输入引导命令,修复grub文件
grub> rootnoverify (hd1,0) ->回车
grub> setup (hd0) ->回车
Checking if "/boot/grub/stage1" exists...no
Checking if "/grub/stage1" exists...yes
Checking if "/grub/stage2" exists...yes
Checking if "grub/e2fs_stage1_5" exists...yes
Runing "embed /grub/e2fs_stage1_5 (hd0)"...sectors are embedded.
succeeded
Runing "install /grub/stage1 d (hd0) (hd0)1+15 p (hd1,0)/grub/stage2 /grub/grub.conf"...succeeded
Done.
grub> install /grub/stage1 d (hd0) (hd0)1+15 p (hd1,0)/grub/stage2 /grub/grub.conf ->回车
4.从启计算机,OK!