如何查看linux的文件系统block size

时间:2022-09-14 05:13:53


但是注意的是tune2fs 只能用于ext2和ext3

[root@localhost tmp]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             4.0G  2.0G  1.8G  53% /
/dev/sda1             494M   19M  450M   4% /boot
none                  506M     0  506M   0% /dev/shm
/dev/sdb1             7.9G   51M  7.5G   1% /srv/myproject
[root@localhost tmp]# tune2fs -l  /dev/sda3 |grep -i 'block size'
Block size:               4096
[root@localhost tmp]# tune2fs -l  /dev/sdb1 |grep -i 'block size'
Block size:               4096
[root@localhost tmp]# tune2fs -l  /dev/sda1 |grep -i 'block size'
Block size:               1024