Determine the block size of an ‘ext’ partition on Linux.

Sometimes (for example while setting User or Group quotas on Linux) obtain the correct value of the FileSystem Block Size could be very useful.

This could be simply done by using tune2fs:

tune2fs -l /dev/sdX | grep 'Block size'

Note: replace sdX with the correct partition identifier.

To get the block size of the FileSystem over LVM, it is possible to specify /dev/mapper/ instead of the partition identifier.


Comments are closed.