LinuxSir.cn,穿越时空的Linuxsir!

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

kernel panic

[复制链接]
发表于 2004-12-11 00:07:46 | 显示全部楼层 |阅读模式
从fc3上装gentoo,未emerge grub ,
配置gentoo的fstab如下:
               /dev/hda9           /          ext3    noatime        0  1
                 none                    /dev/shm          tmpfs   nodev,nosuid,noexec       0 0
                  none                    /proc                   proc    defaults        0 0
                  /dev/hda7      none         swap                    sw     0 0
                /dev/cdroms/cdrom0    /mnt/cdrom    auto    noauto,user  0  0
配置fc3的grub.conf如下:
           root (hd0,7)
default=0
timeout=15
splashimage=(hd0,7)/boot/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.9-1.667)
        root (hd0,7)
        kernel /boot/vmlinuz-2.6.9-1.667 ro root=LABEL=/ rhgb quiet
        initrd /boot/initrd-2.6.9-1.667.img
title Other
        rootnoverify (hd0,0)
        chainloader +1
title gentoo
      root (hd0,8)
      kernel (hd0,8)/boot/kernel-2.6.9-gentoo-r9 root=/dev/hda9
重启时提示:
VFS:Cannot open root device  "<NULL>" or unknown-block(3,9)
please append a correct "root="   boot  option
kernel panic not syncing:VFS:Unable to mount root fs on unknown-block(3,9)
发表于 2004-12-11 03:32:00 | 显示全部楼层

回复: kernel panic

最初由 tianhenooo 发表

重启时提示:
VFS:Cannot open root device  "<NULL>" or unknown-block(3,9)
please append a correct "root="   boot  option
kernel panic not syncing:VFS:Unable to mount root fs on unknown-block(3,9)

It looks your FC3 is installed on hda8 but it does not reflect in root=/dev/hda8

Are you using genkernel to build your kernel?  If you use genkernel, then you need other options, say init=...., initrd=..... etc

Do you encounter this problem when you boot FC3 or gentoo?
 楼主| 发表于 2004-12-11 10:48:22 | 显示全部楼层

回复: 回复: kernel panic

我没用genkernel
另外,我没说清楚,我是在进gentoo时出的问题,我的fc3装在/dev/hda8
gentoo 装在/dev/hda9


最初由 d00m3d 发表
It looks your FC3 is installed on hda8 but it does not reflect in root=/dev/hda8

Are you using genkernel to build your kernel?  If you use genkernel, then you need other options, say init=...., initrd=..... etc

Do you encounter this problem when you boot FC3 or gentoo?
发表于 2004-12-11 12:24:55 | 显示全部楼层
我觉得这是内核编译选项时没有选对
你重新选一些file system与device这部分吧
发表于 2004-12-11 12:55:45 | 显示全部楼层
Just a wide wide guess.

you are using the genkernel.
after reading its document (http://www.gentoo.org/doc/en/genkernel.xml)

i found genkernel default make kernel with its root fs sperated from the core. ie the  initrd.img(root fs)

Yet another quick one in Chinese!
http://www.gentoo.org.tw/doc/gentoo-x86-quickinstall.xml

Please do check the /usr/src/linux, see if you can find the initrd root fire-system image, copy to the boot dir and append this line to grub.conf (initrd (hd0,8)/boot/initrd-2.6.9-gentoo-r9.img)

title gentoo
root (hd0,8)
kernel (hd0,8)/boot/kernel-2.6.9-gentoo-r9 root=/dev/hda9
initrd (hd0,8)/boot/initrd-2.6.9-gentoo-r9.img
发表于 2004-12-11 13:38:48 | 显示全部楼层
楼主的fstab或grub.conf似乎没错,应该是内核配置的问题。可以试试用你的fc的config。
 楼主| 发表于 2004-12-11 21:23:58 | 显示全部楼层
用fc的config?哪个呢?内核?


最初由 Fleta 发表
楼主的fstab或grub.conf似乎没错,应该是内核配置的问题。可以试试用你的fc的config。
发表于 2004-12-11 22:08:33 | 显示全部楼层

用 genkernel, 是有一些分别的

你好。

你用的是genkernel, 是有一些分别的!
请看这篇
http://gentoo.linuxsir.cn/doc/cn ... hap7.html#doc_chap4
主要是要把启动跟系统和核心分开两个文件!!

一并复制 initrd 和 kernel。再改grub脚本

title gentoo
root (hd0,8)
kernel (hd0,8)/boot/kernel-2.6.9-gentoo-r9 root=/dev/hda9
initrd (hd0,8)/boot/initrd-2.6.9-gentoo-r9.img


不好意思,上次用E文回帖!!
发表于 2004-12-11 22:12:10 | 显示全部楼层
最初由 tianhenooo 发表
用fc的config?哪个呢?内核?

是啊,内核源码根目录下的.config
注意,是隐藏文件哦
 楼主| 发表于 2004-12-11 22:55:24 | 显示全部楼层

回复: 用 genkernel, 是有一些分别的

我没用genkernel

最初由 akarc 发表
你好。

你用的是genkernel, 是有一些分别的!
请看这篇
http://gentoo.linuxsir.cn/doc/cn ... hap7.html#doc_chap4
主要是要把启动跟系统和核心分开两个文件!!

一并复制 initrd 和 kernel。再改grub脚本

title gentoo
root (hd0,8)
kernel (hd0,8)/boot/kernel-2.6.9-gentoo-r9 root=/dev/hda9
initrd (hd0,8)/boot/initrd-2.6.9-gentoo-r9.img


不好意思,上次用E文回帖!!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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