RedHat grub configuration error repair

Source: Internet
Author: User
ArticleDirectory
    • 1. Repair steps
1. Repair steps

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

Additional:

VI/boot/GRUB/grub. conf when editing a file, it is best to copy the configuration from another computer. Do not manually enter the configuration. Sometimes the correct input will still cause errors.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.