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

Assuming that I use ext3 filesystem in Cent OS: Can I increase the number of Free Inodes in the filesystem? If Yes how? When I run tune2fs -l /dev/sda1 it got these inodes statistics:

Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery sparse_super
Inode count:              26104
Free inodes:              26069
Inodes per group:         2008
Inode blocks per group:   251
First inode:              11
Inode size:               128
Journal inode:            8
Journal backup:           inode blocks
share|improve this question
Did you search ?!… – Sepahrad Salour Apr 21 '13 at 10:22
I don't want to change the inode size(wich is by default 128 bytes) but the max inode count. – Chedy2149 Apr 21 '13 at 12:42
@terdon ext filesystems are limited in size and number of files. This is about the latter. Even if you have terabytes of free disk space, if you're out of inodes, no new files can be created. – Daniel Beck Apr 22 '13 at 7:45
@DanielBeck, ah, of course, sorry not thinking straight. – terdon Apr 22 '13 at 13:26
up vote 2 down vote accepted

In order to increase the number of Inode in ext3 filesystem we need to remake the filesystem using mke2fs with the -i option we can set the byte-per-inode ratio which will affect the number of inodes. Otherwise the -N option allows to specify the exact number of inodes.

share|improve this answer

You must log in to answer this question.

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