在Linux中,数据块的大小是多少?
先查看下文件系统的分布情况:

[root@rhel5-64 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
18G 5.8G 11G 36% /
/dev/sda1 99M 13M 82M 14% /boot
tmpfs 500M 0 500M 0% /dev/shm
/dev/hdc 3.9G 3.9G 0 100% /iso
[root@rhel5-64 ~]#
查看文件系统的详细信息:

[root@rhel5-64 ~]# dumpe2fs /dev/mapper/VolGroup00-LogVol00 | grep –color “Block size”
dumpe2fs 1.39 (29-May-2006)
Block size: 4096
[root@rhel5-64 ~]#
[root@rhel5-64 ~]# dumpe2fs /dev/sda1 | grep –color “Block size”
dumpe2fs 1.39 (29-May-2006)
Block size: 1024
[root@rhel5-64 ~]#
可以看到在Linux中,不同的挂载点的“Block size”是不一样的。

——
To be continue。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

隐藏
变装