Redhat GRUB配置错误修复

本文提供了一套详细的步骤来修复Linux系统中的GRUB引导加载器问题,包括备份配置文件、使用GRUB命令行进行设置以及修改grub.conf文件等内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

一、修复步骤

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值