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, 2012 at 18:19

1 Answer 1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .