How to find filesystem block size in linux or Unix ?
Today we will look how to find a filesystem blocksize in Linux or Unix Operating System.
There are many ways, however the preferred ways are quoted below.
1. Use blockdev command.
[root@ngelinux ~]# blockdev --getbsz /dev/sdb2 4096
2. Use of tune2fs command
[root@ngelinux ~]# tune2fs -l /dev/sdb2 | grep -i "block size" Block size: 4096 [root@ngelinux ~]#