What Do I Do If the Combined Used and Available Disk Space Is Not the Same as the Total Disk Space in an EXT4 File System?
Symptom
When df -m is used to check disk space, the sum of the used disk space and available disk space is not equal to the total disk space, for example, in the following picture, where 29955 is more than 12366 + 16991.
Possible Cause
By default, an ext4 file system reserves some space (usually 5%) for system users so that they can still run key commands when the disk is "full". You can use tune2fs -l /xx/xx to query the reserved space of an ext4 file system. In the following example, 156,712 blocks are reserved.
Solution
1. It is normal for some disk space to be reserved for a system partition. You are not advised to change it.
2. For data partitions that can accept the risk of a full disk, you can reduce their reserved space by running tune2fs -m x /xx/xx. For example, run tune2fs -m 2 /dev/mapper/hce-home to set the percentage of reserved space for the home partition to 2%.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot