Symptom: Df-h shows that the hard disk has 14G space, but touch File/mkdir directory fails, indicating that the hard disk has no space
Cause: Df-ia View the use of the inode, found to have exploded, (show use 88%, not run out)
So, what exactly is the inode? Why can't I create files and folders when I'm done with it?
Explanation: The file is stored on the hard disk and the minimum storage unit of the hard disk is called "Sector" (Sector). Each sector is stored 512 bytes (equivalent to 0.5KB).
When the operating system reads the hard disk, it does not read each sector, so the efficiency is too low, but the one-time continuous reading of multiple sectors, that is, one time to read a block. This "block", composed of multiple sectors, is the smallest unit of file access. "Block" size, the most common is 4KB, that is, eight consecutive sector to form a block.
File data is stored in "blocks", then obviously, we must also find a place to store the meta-information of the file, such as the creator of the file, the date the file was created, the size of the file, and so on. This area of stored file meta information is called Inode, and the Chinese name is " index node ".
Each file has a corresponding inode, which contains some information about the file
You can use the Stat command to view inode information: Stat example.txt
Also, there is a limit to the number of subdirectories in a single directory
Reference:
1, http://www.ruanyifeng.com/blog/2011/12/inode.html
2, HTTPS://WWW.JIANSHU.COM/P/6978BDDD69AF
Why does the hard disk still have space, Linux says hard disk space is not enough?