1

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

1
  • I don't think so... are you looking for statvfs?
    – Celada
    Oct 25 '12 at 18:19
1

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' /
4096

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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