My harddisk usage is 91% but I cannot figure out what occupies so much space...
This morning my squid server terminated for the first time since it was born. After checking I realised the harddisk was full and the log files were getting too huge. Upon deleting some of the log files, squid managed to start again, However when I checked the hard disk usage it gives me 91% being used:
# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda2 28G 24G 2.6G 91% /
/dev/hda1 97M 7.7M 85M 9% /boot
none 122M 0 122M 0% /dev/shm
I have deleted many of the log files and tried to track down what is occupying so much of the hard disk but failed to find out.
I couldn't track down where in the harddisk has been used so much. I tried ls -sh on each directory but all the directories seem to occupy K size which isn't likely to be the souce of the space being used.
I did this:
# ls -sh
4.0K bin 4.0K home 4.0K misc 4.0K root 0 sys
1.0K boot 1.0K initrd 4.0K mnt 12K sbin 4.0K tmp
168K dev 4.0K lib 4.0K opt 4.0K selinux 4.0K usr
12K etc 16K lost+found 0 proc 4.0K share 4.0K var
from above, it doesnt seem like any of the directory is occupying much space? Any idea why the harddisk has been used so much?
thanks a lot for taking time reading my mail,