Solve the disk space is full, making it impossible to read and write to the disk!

  

Due to the unreasonable design when installing the system, some partitions are too small, and the network files are faulty, causing the log files to grow rapidly. Other reasons may be that the disk space is full, and the disk cannot be read or written. The application cannot be executed. Wait. Here are a few tricks for you (using /homespace as an example):
1. Regularly scan important file systems and compare them to analyze those files that are often read and written
#ls –lR /home > ;;files.txt
#diff filesold.txt files.txt
By analyzing the growth of the forecast space, you can also consider compressing files that are not frequently read and written to reduce the space.
2. View the inodes of the file system full of space
#df – i /home
If there are a large number of inodes available, it means that large files take up space, otherwise it is possible that a large number of small files take up space.
3. Find the directory with a large space
View the space occupied by /home
#du –hs /home
View the space occupied by /home under 1000m
#du

Copyright © Windows knowledge All Rights Reserved