二grub.conf文件壞或丟失,修復。
1.刪除grub.conf文件 rm –rf/boot/grub/grub.conf。
2.reboot重啓進入grub>模式。
3.輸入root (hd0,0)回車。
4.輸入kernel /vm(此時tab補全vmlinuz-2.6.18-92.el5)roroot=/dev/sda3 rhgb quiet回車。
5.輸入initrd /in(此時tab補全initrd-2.6.18-92.el5.img)回車。
6.輸入boot(之後會重啓進入系統)。
7.打開終端 vi/boot/grub/grub.conf
title xxxxxxxxxxxxxxxxxxxx
root (hd0,0)
kernel/vmlinuz-2.6.18-92.el5 ro root=/dev/sda3 rhgb quiet
initrd/initrd-2.6.18-92.el5.img
注:此處el5中的l是L。
8.保存並退出。