On my Amazing 2GB EeePC Surf, I have no more space left!This is quite normal, and it happens every now and then. Just delete a few large, unneeded files and everything should be good, right?So I go and find a 2MB file in /tmp, and rm -rf it. Check free space again, and -- still nothing?!I had to remove about 30MB of files before it registered some free space.Now, my question is, what's up with this strange behaviour?
What happened to my free space
disk usage
Do the Used and Available columns of df output add up to the figure in the total column? (The output of df reflects the data from the underlying statvfs system call, so you'll find the same numbers in any other application.)If not (which is probably the case), that's because by default, on an ext2/ext3/ext4 filesystem, 5% of the space is reserved to root. This space is not included in the Available column. So if you've filled exactly 95% of the filesystem, the available space is 0.You can change the user who gets the 5%, or change the amount (all the way to 0 if you like), with tune2fs (options -g and -uto control who gets it,-mor-r` to control how much there is).