Friday, June 26, 2009

Finding Block Size of Filesystem

In order to, find block size of a filesystem on Linux,

$ sudo tune2fs -l /dev/sda1 | grep -i 'block size'
Block size: 4096

OR

$ echo "mitesh"> test && du test | awk '{print $1}' && rm -f test
4K

2 comments:

Sourabh Rungta said...

Good Work Mitesh

mitesh.singh.jat said...

Thank you Sir for the encouragement.

Yours sincerely,
Mitesh Singh Jat