在linux系统上,可以用命令tune2fs ,测试如下
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23 |
[root@localhost test10g]# tune2fs -help
tune2fs 1.35 (28-Feb-2004)
tune2fs: invalid option -- h
Usage: 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]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda2 8776068 7576504 753764 91% /
/dev/sda1 497829 16303 455824 4% /boot
none 517300 0 517300 0% /dev/shm
/dev/sda5 1035660 96452 886600 10% /tmp
[root@localhost test10g]# tune2fs -l /dev/sda1|grep Block
Block count: 514048
Block size: 1024
Blocks per group: 8192
[root@localhost test10g]# tune2fs -l /dev/sda2|grep Block
Block count: 2229018
Block size: 4096
Blocks per group: 32768 |
上面Block size即为块大小。
在WINDOWS系统上,可以用命令fsutil来查看,测试如下:
C:\\Documents and Settings\\ct2>fsutil –help
–help 是无效参数。
—- 支持的命令 —-
?
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29 |
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 段的簇数 : 0
Mft 有效数据长度 : 0x0000000009cac000
Mft 起始 Lcn : 0x00000000000c4df6
Mft2 起始 Lcn : 0x00000000008ff823
Mft 区域起始 : 0x0000000001067920
Mft 区域结尾 : 0x000000000108ce60 |
上面簇字节数既为块大小。
注:第二扩展文件系统(second Extended Filesystem,Ext2)。 Ext3(third Extended Filesystem)
?
1
2
3
4
5
6
7
8
9
10
11 |
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文件系统块大小的实现方法全部内容了,希望大家多多支持快网idc~
相关文章
猜你喜欢
- ASP.NET本地开发时常见的配置错误及解决方法? 2025-06-10
- ASP.NET自助建站系统的数据库备份与恢复操作指南 2025-06-10
- 个人网站服务器域名解析设置指南:从购买到绑定全流程 2025-06-10
- 个人网站搭建:如何挑选具有弹性扩展能力的服务器? 2025-06-10
- 个人服务器网站搭建:如何选择适合自己的建站程序或框架? 2025-06-10
TA的动态
- 2025-07-10 怎样使用阿里云的安全工具进行服务器漏洞扫描和修复?
- 2025-07-10 怎样使用命令行工具优化Linux云服务器的Ping性能?
- 2025-07-10 怎样使用Xshell连接华为云服务器,实现高效远程管理?
- 2025-07-10 怎样利用云服务器D盘搭建稳定、高效的网站托管环境?
- 2025-07-10 怎样使用阿里云的安全组功能来增强服务器防火墙的安全性?
快网idc优惠网
QQ交流群
您的支持,是我们最大的动力!
热门文章
-
php通过PHPExcel导入Excel表格到MySQL数据库的简单实例
2025-05-29 55 -
2025-05-25 39
-
新手建站SEO:内容更新频率应该如何规划才能持续获得良好的搜索结果?
2025-06-04 90 -
2025-05-27 27
-
2025-05-29 34
热门评论