- 论坛徽章:
- 0
|
搞不懂了,小弟模仿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.
想问下各位,这是什么原因造成的呢? |
|