免费注册 查看新帖 |

Chinaunix

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

linxu9从kernel 2.4.20-8编译到2.6.16启动进出错 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-07-16 17:02 |只看该作者 |倒序浏览
各位兄弟:以下是出错提示:kernel panic-not syncing: VFS:Unable to mount root fs on unknow-block(0,0),我按照网上找的几个贴子,有几个解决方法:
1. VFS:Cannot open root device “hdxy” or unknow-block(0,0)
Please append a correct “root=” boot option
kernel panic-not syncing: VFS:Unable to mount root fs on unknow-block(0,0)

解决方法:把
08.05.11、<*> RAM disk support
09.27.07、<*> Compressed ROM file system support (cramfs) 这两项都要选上!!!!!!否则,呵呵!

2.# vi grub/grub.conf (ZhiQiao:此处应该为/grub/grub.conf)

进入grub.conf文件,找到如下信息:

default=1

timeout=10

splashimage=(hd0,0)/grub/splash.xpm.gz

title Red Hat Linux (2.6.1

root (hd0,0)

kernel /vmlinuz-2.6.18 ro root= LABEL=/

initrd /initrd-2.6.18.img

做两处修改:

(1) 将default=1改为default=0(不改的话,重启之后默认进入2.4内核)

(2) 将kernel行的“LABEL=/”换成根目录所在的分区(上一步查看的就是)

还是不能解决,现附上我的grub.conf:

# 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/sda2
#          initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.6.16)
        root (hd0,0)
        kernel /vmlinuz-2.6.16 ro root=/dev/sda2
        initrd /initrd-2.6.16.img
title Red Hat Linux (2.4.20-
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img
郁闷呀~~~,大家帮帮忙呀~~~

论坛徽章:
0
2 [报告]
发表于 2007-07-16 18:15 |只看该作者
config时
FileSystem选择ext3没???
还有,通过df -h来看看/对应的是hdaX,然后修改。
你的是sda?

论坛徽章:
0
3 [报告]
发表于 2007-07-16 18:47 |只看该作者
好像RH9用的文件系统是ext2的。升级内核时要选上ext2
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP