How to Increase Disk Inode Number in Linux

How to Increase Disk Inode Number in Linux?

Asked on August 28, 2021 in info.
Add Comment
1 Answer(s)

If all inodes in a file system are exhausted, the kernel can not create new files even when there is available space on the disk.

Here, we will show you how to increase the number of inodes in a file system in Linux.

The following example shows how to create an EXT4 file system type with a small bytes-per-inode ratio on a 4GB partition.

$ sudo mkfs.ext4 -i 16400 /dev/sdc1

Note: Once the file system is created, you can not change the bytes-per-inode ratio (unless you re-format it), 
and resizing a filesystem changes the number of inodes to maintain this ratio.

 

Answered on August 28, 2021.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.