I need to create a very high number of files which are not very large (like 4kb,8kb). It\'s not possible on my computer cause it takes all inodes up to 100% and I cannot create
The default bytes per inode is usually 16384, which is the default inode_ratio
in /etc/mke2fs.conf
(it's read prior to filesystem creation). If you're running out of inodes, you might try for example:
mkfs.ext4 -i 8192 /dev/mapper/main-var2
Another option that affects this is -T
, typically -T news
which further reduces it to 4096.
Also, you can not change the number of inodes in a ext3 or ext4 filesystem without re-creating or hex-editing it. Reiser filesystems are dynamic so you'll never have an issue with them.