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/archive/2010/09/20/1831709.html
總結
以上是生活随笔為你收集整理的Redhat GRUB配置错误修复的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux chmod命令
- 下一篇: bootstrap validator