Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wonder if filesystem block size is presented in any of file in /proc or /sys directory.

share|improve this question
I don't think so... are you looking for statvfs? – Celada Oct 25 '12 at 18:19

No, but you can use stat --file-system to get information about a filesystem:

% stat --file-system /
  File: "/"
    ID: 5901e0357ca07cae Namelen: 255     Type: ext2/ext3
Block size: 4096       Fundamental block size: 4096
Blocks: Total: 2580302    Free: 412729     Available: 386515
Inodes: Total: 655360     Free: 314397

If you just want the block size:

% stat --file-system --format='%S' /
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.