Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 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
share|improve this answer

Your Answer

 
discard

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.