How we can find the ratio of inodes to blocks? How can we change that ratio?
To get the ratio, it's going to depend on the filesystem.
On ext2/3/4 then
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.
On my Ubuntu system:
Will get you this sort of output:
This assumes you're using an ext2, ext3, or ext4 filesystem. The disk shown is using ext4.