inode-block ratio

0

1

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

Mohit Joshi

Posted 2010-05-27T19:25:15.280

Reputation: 11

1Please don't ask the same question on multiple sites. Your original one can be moved. – Broam – 2010-05-28T02:07:43.457

Answers

0

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.

gorilla

Posted 2010-05-27T19:25:15.280

Reputation: 2 204

0

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.

Broam

Posted 2010-05-27T19:25:15.280

Reputation: 3 831