df -i shows
Filesystem Inodes IUsed IFree IUse% Mounted on
udev 1745003 593 1744410 1% /dev
tmpfs 1760785 914 1759871 1% /run
/dev/sda1 5283840 5283840 0 100% /
tmpfs 1760785 225 1760560 1% /dev/shm
tmpfs 1760785 7 1760778 1% /run/lock
tmpfs 1760785 17 1760768 1% /sys/fs/cgroup
tmpfs 1760785 38 1760747 1% /run/user/1000
How To Increase Amount of Disk inodes in Ubuntu Linux?
It doesn't happen often, but at times you may run out of inodes on a Linux system.
To find your current inode usage, run
$ df -i
To know more about inode exactly, refer Wikipedia has a good description.
A disk with 0 available inodes is probably full of very small files, somewhere in a specific directory (applications, tmp-files, pid files, session files, ...). Each file uses (at least) 1 inode. Many million files would use many million inodes.
If your disk's inodes are full, how do you increase it?
The amount of inodes available on a system is decided upon creation of the partition. For instance, a default partition of EXT3/EXT4 has a bytes-per-inode ratio of one inode every 16384 bytes (16 Kb).
A 10 GB partition would have around 622,592 inodes. A 100 GB partition has around 5,976,883.
Do you want to increase the amount of inodes?
Either increase the capacity of the disk entirely or re-format the disk using the following command:
To know more about the command
mkfs.ext4
, go for man page with the command:$ man mkfs.ext4
Also refer mke2fs - create an ext2/ext3/ext4 filesystem
I am not sure that you can modify the number of inodes in an existing
ext4
file system. There are some options intune2fs
, but there are warnings about it in the manual.But it is possible (and straight-forward) to increase the number of inodes, when you create the file system. See
man mkfs.ext4
,