免费注册 查看新帖 |

Chinaunix

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

AS4如何设置大BlockSize,谢谢 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-08-03 14:42 |只看该作者 |倒序浏览
各位好

请教下AS4怎么才能将文件系统Block Size改为32768,甚至更大??谢谢

我执行
mke2fs -b 32768 /cache3

提示我
mke2fs: bad block size - 32768

论坛徽章:
0
2 [报告]
发表于 2007-08-03 15:01 |只看该作者
你指定的值无效

       -b block-size
              Specify the size of blocks in bytes.  Valid block size vales are
              1024,  2048 and 4096 bytes per block.  If omitted, mke2fs block-
              size is determined by the file  system  size  and  the  expected
              usage of the filesystem (see the -T option).


最大好象可以是 8192 ,再大就不行了

[ 本帖最后由 ailms 于 2007-8-3 15:03 编辑 ]

论坛徽章:
0
3 [报告]
发表于 2007-08-06 16:48 |只看该作者
我加大T 也不管用,试了 -T largefile ,然后dump2fs一看,block size仍旧是4096。

哎,他能像newfs那么听话就好了,不过如果是小BBS的话,ext2/3文件系统在block size上面比较有优势

    -T fs-type
              Specify how the filesystem is going to be used, so that mke2fs can chose optimal filesystem parameters for that use.  The supported filesystem types are:

                   news        one inode per 4kb block

                   largefile   one inode per megabyte

                   largefile4  one inode per 4 megabytes

论坛徽章:
0
4 [报告]
发表于 2007-08-06 17:19 |只看该作者
-T 不是这个含义,这个是和 inode 有关的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP