This has been perplexing me for some time. I'm on Ubuntu 11.04. My root partition is filling up and I can't figure out what's causing it. Even stranger, when I run df -h
, this is the output:
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 9.2G 8.8G 0 100% /
As you see, there should be about 400 MB free, but Avail
shows 0. What could be causing this? I've even uninstalled some programs to free the space and it fills up again. Suggestions on how to find out which, if any, files are filling up the space are also welcome.
Best Answer
A first shot: High traffic in an error log. I guess if you would download videos, you would know it. :)
For me it is 20M, and beside the log-directory, there is a cache for the installations. Use
If this is your problem.
Of course, you should check /home if it is in your root partition.
If you have to search big files iteratively, I can suggest a series of commands, which can be repeated and is pretty fast after the first initial step:
and so on. Follow the biggest dirs to find the bigger files. You can't use -sh here, because sorting numerically does not work with the k/M/G/T for kilobyte and so on.