LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1732|回复: 7

Centos5更新内核的问题:Kernel panic!

[复制链接]
发表于 2008-6-27 19:15:49 | 显示全部楼层 |阅读模式
centos5.1, 用yum upgrade更新了所有东西,包括新内核2.6.18-92.1.1.el5
但在引导时出现:
kernel panic - not syncing: Fatal exception

然后就死了!
试了xen版的内核也有同样问题!

今天又出了一个内核更新2.6.18-92.1.6.el5, 下载更新还是出同样问题

请问这是什么问题,怎么解决?
发表于 2008-6-27 19:38:29 | 显示全部楼层
你有没有修改过menu.lst文件,例如把
kernel /boot/vmlinuz-2.6.18-92.1.1.el5.centos.plusPAE ro root=LABEL=CentOS rhgb quiet
改成
kernel /boot/vmlinuz-2.6.18-92.1.1.el5.centos.plusPAE ro root==/dev/disk/by-id/scsi-SATA_ST3250824AS_4ND3TWW7-part5 rhgb quiet
之类的,我的就是root=LABEL=CentOS可以启动,而root==/dev/disk/by-id/scsi-SATA_ST3250824AS_4ND3TWW7-part5出现kernel panic。
另外似乎只有plus的内核支持非ext3的其他文件系统。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-27 20:45:37 | 显示全部楼层
没改过menu.lst, 都是自动生成的。下面是menu.lst,
我自己编译的2.6.25.9可以正常引导,但起来后iptables有问题

#boot=/dev/hda
default=4
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.1.6.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-92.1.6.el5 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.18-92.1.6.el5.img
title CentOS (2.6.25.9)
        root (hd0,0)
        kernel /vmlinuz-2.6.25.9 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.25.9.img
title CentOS (2.6.18-92.1.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-92.1.1.el5 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.18-92.1.1.el5.img
title CentOS (2.6.18-92.1.1.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-92.1.1.el5
        module /vmlinuz-2.6.18-92.1.1.el5xen ro root=LABEL=/ rhgb quiet
        module /initrd-2.6.18-92.1.1.el5xen.img
title CentOS (2.6.18-53.1.14.el5.centos.plus)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.1.14.el5.centos.plus ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.18-53.1.14.el5.centos.plus.img
回复 支持 反对

使用道具 举报

发表于 2008-6-28 00:08:36 | 显示全部楼层
有可能是root=LABEL=/的问题,我在CentOS5.2升级的新内核默认增加的mennu.lst入口为
kernel /boot/vmlinuz-2.6.18-92.1.1.el5.centos.plusPAE ro root=/dev/disk/by-id/scsi-SATA_ST3250824AS_4ND3TWW7-part5 rhgb quiet
出现kernel panic,我改成
kernel /boot/vmlinuz-2.6.18-92.1.1.el5.centos.plusPAE ro root=LABEL=CentOS rhgb quiet
之后问题解决。也许你可以试试改成root=/dev/sda5之类的方式试试。
回复 支持 反对

使用道具 举报

发表于 2008-6-28 09:55:31 | 显示全部楼层
Post by seismo;1868355
没改过menu.lst, 都是自动生成的。下面是menu.lst,
我自己编译的2.6.25.9可以正常引导,但起来后iptables有问题

#boot=/dev/hda
default=4
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.1.6.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-92.1.6.el5 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.18-92.1.6.el5.img
title CentOS (2.6.25.9)
        root (hd0,0)
        kernel /vmlinuz-2.6.25.9 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.25.9.img
title CentOS (2.6.18-92.1.1.el5)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-92.1.1.el5 ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.18-92.1.1.el5.img
title CentOS (2.6.18-92.1.1.el5xen)
        root (hd0,0)
        kernel /xen.gz-2.6.18-92.1.1.el5
        module /vmlinuz-2.6.18-92.1.1.el5xen ro root=LABEL=/ rhgb quiet
        module /initrd-2.6.18-92.1.1.el5xen.img
title CentOS (2.6.18-53.1.14.el5.centos.plus)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-53.1.14.el5.centos.plus ro root=LABEL=/ rhgb quiet
        initrd /initrd-2.6.18-53.1.14.el5.centos.plus.img



看着咋这样乱的,全是自带内核的升级,还不如自己编译一个新内核用了。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-29 00:06:35 | 显示全部楼层
自己编译了一个2.6.25.9的内核,能引导起来,但iptables不能用,看了下iptables依赖一大堆东西,懒得再升了。
明天再试试root=/dev/xxx 看行不行
回复 支持 反对

使用道具 举报

发表于 2008-6-29 12:00:00 | 显示全部楼层
Post by seismo;1868831
自己编译了一个2.6.25.9的内核,能引导起来,但iptables不能用,看了下iptables依赖一大堆东西,懒得再升了。
明天再试试root=/dev/xxx 看行不行

我的2.6.25.8 使用iptables 没问题,关键是内核选项要够用,附件是我的2.6.25.8的内核config 文件,可参考使用。

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-6-30 00:37:44 | 显示全部楼层
多谢楼上!
明天上班试试!
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表