免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3346 | 回复: 3
打印 上一主题 下一主题

grub的menu.lst文件修改后无法引导,什么原因? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-09-02 09:41 |只看该作者 |倒序浏览
原:(可以引导)
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-53.el5
        module /vmlinuz-2.6.18-53.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        module /initrd-2.6.18-53.el5xen.img

修改后:(不能引导)
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen T)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.18-53.el5xen.img

我编译了内核后,menu.lst添加的内容是这样的:
title Red Hat Enterprise Linux Server (2.6.30.5)
        root (hd0,0)
        kernel /vmlinuz-2.6.30.5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
        initrd /initrd-2.6.30.5.img

所以我按这个形式对原来的2.6.18做了修改,结果不能引导,什么原因?

论坛徽章:
0
2 [报告]
发表于 2009-09-03 10:47 |只看该作者
顶一下,等牛人解疑。

论坛徽章:
0
3 [报告]
发表于 2009-09-07 16:44 |只看该作者
可以把menu.lst文件完整的发出来看下么?

论坛徽章:
0
4 [报告]
发表于 2009-09-07 18:47 |只看该作者
原帖由 xKF15631 于 2009-9-7 16:44 发表
可以把menu.lst文件完整的发出来看下么?

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.30.5)
        root (hd0,0)
        kernel /vmlinuz-2.6.30.5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet selinux=0
        initrd /initrd-2.6.30.5.img
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-53.el5
        module /vmlinuz-2.6.18-53.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet selinux=0
        module /initrd-2.6.18-53.el5xen.img
title Red Hat Enterprise Linux Server (2.6.18-53.el5xen T)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.el5xen ro root=/dev/VolGroup00/LogVol00 rhgb quiet selinux=0
        initrd /initrd-2.6.18-53.el5xen.img


2.6.18-53.el5xen T,这个是修改的,不能引导。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP