查看linux文件系统块大小的实现方法
linux  /  管理员 发布于 5年前   176
在linux系统上,可以用命令tune2fs ,测试如下
[root@localhost test10g]# tune2fs -helptune2fs 1.35 (28-Feb-2004)tune2fs: invalid option -- hUsage: tune2fs [-c max-mounts-count] [-e errors-behavior] [-g group] [-i interval[d|m|w]] [-j] [-J journal-options] [-l] [-s sparse-flag] [-m reserved-blocks-percent] [-o [^]mount-options[,...]] [-r reserved-blocks-count] [-u user] [-C mount-count] [-L volume-label] [-M last-mounted-dir] [-O [^]feature[,...]] [-T last-check-time] [-U UUID] device[root@localhost test10g]# dfFilesystem 1K-blocks Used Available Use% Mounted on/dev/sda2 8776068 7576504 753764 91% //dev/sda1 497829 16303 455824 4% /bootnone 517300 0 517300 0% /dev/shm/dev/sda5 1035660 96452 886600 10% /tmp[root@localhost test10g]# tune2fs -l /dev/sda1|grep BlockBlock count: 514048Block size: 1024 Blocks per group: 8192[root@localhost test10g]# tune2fs -l /dev/sda2|grep BlockBlock count: 2229018Block size: 4096Blocks per group: 32768
上面Block size即为块大小。
在WINDOWS系统上,可以用命令fsutil来查看,测试如下:
C:\Documents and Settings\ct2>fsutil --help
--help 是无效参数。
---- 支持的命令 ----
behavior 控制文件系统行为dirty 管理卷的被损坏的位数file 文件特定命令fsinfo 文件系统信息hardlink 硬链接管理objectid 对象 ID 管理quota 配额管理reparsepoint 重分析点管理sparse 稀疏文件控制usn USN 管理volume 卷管理C:\Documents and Settings\ct2>fsutil fsinfo ntfsinfo c:NTFS 卷序列号 : 0x72ccb5f2ccb5b129版本 : 3.1区数量 : 0x0000000008ff8235簇总数 : 0x00000000011ff046可用簇 : 0x0000000000547b73保留总数 : 0x0000000000000050每个扇区字节数 : 512每个簇字节数 : 4096每个 FileRecord 段的字节数 : 1024每个 FileRecord 段的簇数 : 0Mft 有效数据长度 : 0x0000000009cac000Mft 起始 Lcn : 0x00000000000c4df6Mft2 起始 Lcn : 0x00000000008ff823Mft 区域起始 : 0x0000000001067920Mft 区域结尾 : 0x000000000108ce60
上面簇字节数既为块大小。
注:第二扩展文件系统(second Extended Filesystem,Ext2)。 Ext3(third Extended Filesystem)
man fs ext2 is the high performance disk filesystem used by Linux for fixed disks as well as removable media. The second extended filesystem was designed as an extension of the extended file system (ext). ext2 offers the best performance (in terms of speed and CPU usage) of the filesystems supported under Linux. ext3 is a journaling version of the ext2 filesystem. It is easy to switch back and forth between ext2 and ext3. ext3 is a journaling version of the ext2 filesystem. ext3 offers the most complete set of journaling options available among journaling filesystems.
以上就是小编为大家带来的查看linux文件系统块大小的实现方法全部内容了,希望大家多多支持~
博主 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 @1111老铁这个不行了,可以看看近期评论的其他文章..1111 在
佛跳墙vpn软件不会用?上不了网?佛跳墙vpn常见问题以及解决办法中评论 网站不能打开,博主百忙中能否发个APP下载链接,佛跳墙或极光..路人 在
php中使用hyperf框架调用讯飞星火大模型实现国内版chatgpt功能示例中评论 教程很详细,如果加个前端chatgpt对话页面就完美了..博主 在
科学上网翻墙之v2rayN-Core客户端免费公益节点使用教程中评论 @ mashrdn 多切换几个节点测试,免费ssr是没那么稳..mashrdn 在
科学上网翻墙之v2rayN-Core客户端免费公益节点使用教程中评论 V2rayn免费节点添加上去了,youtobe无法打开网页,是怎么回事..
Copyright·© 2019 侯体宗版权所有·
粤ICP备20027696号