Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
18
rated 0 times [  18] [ 0]  / answers: 1 / hits: 11310  / 3 Years ago, fri, october 15, 2021, 12:44:17

Possible Duplicate:

ext4 partition size / free space discrepancies






The results from a df on my main drive on my server don't add up. I came close to running out of disk space, I freed 4 gigs a couple of days ago, but we're still getting weird results two days later.



Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda1 78441416 73732352 724536 100% /


Now, by my calculation, 78,441,416 - 73,732,352 = 4,709,064, so there should be over 4 gigs left, not the 724,536K that df is reporting.



I don't see this could be a quota error - though quota -f apparently isn't an option for Ubuntu and I haven't yet found a command to recompute the quota.



I'm now going through the various directories doing a du -sk (glad the server seems to have light traffic for a Monday morning) but not sure what that will tell me.



Any hints?


More From » bash

 Answers
2

Linux filesystems routinely reserve between 1 and 10 percent of the filesystem for the root user. This is to ensure the root user can function when a non-root user "fills" the filesystem. The df command does not show this reserved space as available.



As root, run this command: /sbin/tune2fs -l /dev/sda1

Look for the line that reads "Reserved block count".



You can also use tune2fs to change the amount reserved.


[#40666] Sunday, October 17, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
housecoarmer

Total Points: 434
Total Questions: 116
Total Answers: 120

Location: Albania
Member since Sun, Nov 22, 2020
4 Years ago
;