Why does the hard disk still have space, Linux says hard disk space is not enough?

Source: Internet
Author: User

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?

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.