+ -
当前位置:首页 → 问答吧 → 求助:cannot open root device "<NULL>" or unknown-block(254,0)

求助:cannot open root device "<NULL>" or unknown-block(254,0)

时间:2008-04-04

来源:互联网

内核版本:2。6。24,主板NV MCP55, 硬盘SATA,我在内核中只配置了sata和DMA,没有选IDE,不知道怎么把启动信息存在哪里,所以只好简单的描述一下,貌似已经认出了sata,因为SATAdirq号heUDMA信息都有

作者: mimilinux   发布时间: 2008-04-04

认出了硬盘:scsi:0:0:0:0: Direct-Access ATA WDC WD1600JS-00N 10.0 PQ:0 ANSI: 5
我用grub命令启动,root (hd0, <tab>,可以看到各个分区,所以,root (hd0,2)
kernel /boot/<tab>也可以看到我编译的内核bzImage,
kernel /boot/test1-2.6.24
提示:[Linux-bzImage, setup=0x2600, size=0x12f4f8]
然后boot
快速的显示了一堆信息到:
input AT Translated Set 2 keyboard as /class/input/input0
然后是错误:VFS: cannot open root device "<NULL>" or unknown-block(254,0)
please append a correct "root=" boot option;here are the available partition:
kernel panic - not syncing: VFS : unable to mount root fs on unknown-block(254,0)

作者: mimilinux   发布时间: 2008-04-04

我自己有点疑问,硬盘是SATA的,为什么会有scsi:0:0:0:0: Direct-Access ... 这个信息呢?
null c 1 3 节点我建了的。block(254,0)又是什么东东?
总之,搞不定啊,大家帮忙哈

作者: mimilinux   发布时间: 2008-04-04

你的 root=/XXX 似乎没有呢。至于 SATA,是用 scsi 库的。

作者: 晨想   发布时间: 2008-04-04

哦,那我加上SCSI库试试啊,我不知道楼上说我哪里没有root=/XXX,fstab里面我写了,root=/dev/sda3, grub命令里面我输的是root=(hd0,2),然后能找到kernel,还有什么地方要指定root吗

作者: mimilinux   发布时间: 2008-04-05

引用:
作者: mimilinux
哦,那我加上SCSI库试试啊,我不知道楼上说我哪里没有root=/XXX,fstab里面我写了,root=/dev/sda3, grub命令里面我输的是root=(hd0,2),然后能找到kernel,还有什么地方要指定root吗
在GRUB中的kernel命令后面增加 root=/dev/sda3

作者: laowang_buaa   发布时间: 2008-04-05

谢谢楼上两位,我添加了scsi支持了,也做了一个menu.lst, 上面两个错误解决了,但是加载文件系统的时候出错了,fsck.ext3: No such file or directory while trying to open /dev/sda3: the superblock could not be read or does not describle a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem.,then the superblock is corrupt, and you might try running e2fsck with an alternate superblock: e2fsck -b 8193 <device>
接下来就是一段很吓人的红色提示了,回车后系统关机,呵呵。

作者: mimilinux   发布时间: 2008-04-05

那估计是你 fstab 写的有问题,比如 /dev/sda3 不是用 ext2 的。之类的。

作者: 晨想   发布时间: 2008-04-05

引用:
作者: 晨想
那估计是你 fstab 写的有问题,比如 /dev/sda3 不是用 ext2 的。之类的。
不是的,我恢复了一下surperblock,那个错误不提示了,只是init到鼠标的时候又不动了,真是郁闷死了,怎么这么多问题啊,嗨,做了好多次LFS了,从来没遇到过这么多的问题,嗨

作者: mimilinux   发布时间: 2008-04-05

进入init3就不动了,郁闷死了,睡觉了,明天整。

作者: mimilinux   发布时间: 2008-04-05