免费注册 查看新帖 |

Chinaunix

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

register_blkdev:cannot get major 3 for hd [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-01-26 09:02 |只看该作者 |倒序浏览
register_blkdev:cannot get major 3 for hd
List of all partitions:
0300 984816 hda driver:ide-gd
0301   29249   hda1
0302  1            hda2
0305 955473  hda5
No filesystem could mount root,tried:
Kernel Panic-not syncing:VFS:unable to mount root fs on unknown-block(3,1)
为什么会注册块设备失败呢,主设备号3不就是为IDE默认分配的吗?
如果我手动将内核中的
<linux/major.h>中的
#define IDE0_MAJOR 3
改成一个比较然而的数,比如说是444
那是不是也要
mknod /dev/hda b 444 0
mknod /dev/hda1 b 444 1
mknod /dev/hda2 b 444 2
....
这样呢,

如果这样改写了,那么还会不会再出现
register_blkdev:cannot get major444 for hd
这样的错误呢?
哪位好心人,帮忙一下啊。
谢谢

论坛徽章:
0
2 [报告]
发表于 2010-01-26 09:08 |只看该作者
试了一下又出新问题了
ide_generic:enforcing probing of I/O ports upon user request
hda:CF CARD 1GB,ATA DISK drive
.....
....
...
registered taskstats version 1
hd: no drives specified -use hd=cy1,head,sectors,on kernel command line
List of all partitions

bc00   84816 hda driver: ide-gd
bc 01   29248  hda1
bc02   1           hda2
bc05  955473   hda5
No filesystem could mount root,tried:
Kernel Panic-not syncing:VFS:unable to mount root fs on unknown-block(188,1)

论坛徽章:
0
3 [报告]
发表于 2010-01-26 09:24 |只看该作者
出现这句
No filesystem could mount root,tried:
但是我看网上的都是这样的
No filesystem could mount root,tried: ext2,ext3,jffs2,iso9660。。
之类的,这是不是说明我的文件系统没有编译进内核里了,
可是我的确是编译进了内核里了啊,
都是打点的,肯定是内核里的,
为什么我的这句跟网上的不一样呢?
No filesystem could mount root,tried:
No filesystem could mount root,tried: ext2,ext3,jffs2,iso9660。。
这两句问题很大啊

论坛徽章:
1
巨蟹座
日期:2014-03-18 23:44:30
4 [报告]
发表于 2012-09-26 13:45 |只看该作者
楼主问题解决了吗? 我今天也遇到同样的问题了。
register_blkdev: cannot get major 3 for hd
Freeing unused kernel memory: 448k freed
Write protecting the kernel text: 4548k
Write protecting the kernel read-only data: 1336k
mount (31) used greatest stack depth: 6872 bytes left
Mounting proc filesystem
Mounting sysfs filesystem
Creating /dev
Creating initial device nodes
Init disk
modprobe (83) used greatest stack depth: 6804 bytes left
fdisk: cannot open /dev/sda
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP