Super User is a question and answer site for computer enthusiasts and power users. 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

How we can find the ratio of inodes to blocks? How can we change that ratio?

share|improve this question
1  
Please don't ask the same question on multiple sites. Your original one can be moved. – Broam May 28 '10 at 2:07

To get the ratio, it's going to depend on the filesystem.

On ext2/3/4 then

tune2fs -l /dev/special

will display all the paramaters. You'll have to calculate the ratio yourself.

There isn't any way to change the ratio on an existing ext2/3/4 filesystem you have to create a new filesystem.

share|improve this answer

On my Ubuntu system:

sudo tune2fs -l /dev/sda1

Will get you this sort of output:

Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
...
Inode size:           256

This assumes you're using an ext2, ext3, or ext4 filesystem. The disk shown is using ext4.

share|improve this answer

You must log in to answer this question.

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