免费注册 查看新帖 |

Chinaunix

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

基于内存块设备、创建文件系统后挂载的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-12-31 14:48 |只看该作者 |倒序浏览
搞不懂了,小弟模仿lld3中块设备一节,写了个模块。能完成打开、关闭、读写。想试一下创建文件系统如下:
[root@aprilava source]# mkfs.ext3 /dev/sbulla
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
12824 inodes, 51200 blocks
2560 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=52428800
7 block groups
8192 blocks per group, 8192 fragments per group
1832 inodes per group
Superblock backups stored on blocks:
        8193, 24577, 40961

Writing inode tables: done
Creating journal (4096 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 23 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
这应该是成功了吧

然后创建了一个目录,执行挂载操作:
mount -t ext3 /dev/sbulla /home/lld3/source/fs/
mount: wrong fs type, bad option, bad superblock on /dev/sbulla,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

/var/log/message中记录了
Dec 31 14:48:11 aprilava kernel:  sbulla: unknown partition table
Dec 31 14:48:11 aprilava kernel: VFS: Can't find ext3 filesystem on dev sbulla.

想问下各位,这是什么原因造成的呢?

论坛徽章:
0
2 [报告]
发表于 2010-12-31 16:02 |只看该作者
希望有个解决之道啊,下班啦,祝大家元旦快乐啊

论坛徽章:
0
3 [报告]
发表于 2012-12-25 20:53 |只看该作者
回复 1# aprilava


    哥们,我也碰到这个问题了,你解决了吗??求方法
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP