Redhat GRUB配置错误修复

一、修复步骤

a) Mv /boot/grub/grub.conf /boot/grub/grub.conf.bak

b) Rm –rf /boot/grub/grub.conf

c) grub>splashimage=(hd0,0)/grub/splash.xpm.gz

d) grub> root (hd0,0)
grub> setup (hd0,0)
grub> kernel /vmlinux-2.6.18-53.e15 ro root=LABEL=/ rhgb quiet
grub> initrd /initrd-2.6.18-53.e15.img
grub> boot

e) vi /boot/grub/grub.conf

f) #boot=/dev/sda

g) default=0

h) timeout=5

i) splashimage=(hd0,0)/grub/splash.xpm.gz

j) hiddenmenu

k) title Red Hat Enterprise Linux Server (2.6.18-53.el5)

l) root (hd0,0)

m) kernel /vmlinuz-2.6.18-53.el5 ro root=LABEL=/ rhgb quiet

n) initrd /initrd-2.6.18-53.el5.img

o) ln –s ./grub.conf menu.lst

p) chmod 777 /boot/grub/grub.conf

q) ll /boot/grub/

r) reboot

附加:

Vi /boot/grub/grub.conf在编辑文件时,最好是从别的电脑上拷过来的配置,不要手动输入,有时候输入正确的还是会出错。

原文地址:https://www.cnblogs.com/witer666/p/1831709.html