Possible Duplicate:
How do I find out what is using up all the space on my / partition?

No Free disk space

so I have 2 hard drives in my server, one main one that is 10gb and then a separate one that is 2tb

I'm storing all the files on the second one and the df -h output looks like this

Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2             9.2G  8.8G     0 100% /
tmpfs                 1.5G     0  1.5G   0% /lib/init/rw
udev                  1.5G  148K  1.5G   1% /dev
tmpfs                 1.5G     0  1.5G   0% /dev/shm
/dev/sda4             1.8T  747G  981G  44% /home
/dev/sda4             1.8T  747G  981G  44% /usr/lib/cgi-bin

I just can't figure out why the first one is full when all the files are being stored in the /usr/lib/cgi-bin

I'm running debian

I can't seem to find any files that would take up 8.8gb that arn't on the second hard drive :S


marked as duplicate by user9517 Jun 2 '12 at 15:59

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • You have /dev/sda4 mounted twice. That's not good. – EEAA Jun 2 '12 at 15:56
  • In addition to the 2 linked questions check out the Linked and Related questions in their sidebars. – user9517 Jun 2 '12 at 16:04

You can use the du command to track down where the space is being used up:

$ cd /
$ du -sm *

This can take some time to run, but when complete, it'll list the sizes of all the subdirectories of /. Once you find the largest subdir, say /var for instance, then change directory into /var and run the du command again.

Not the answer you're looking for? Browse other questions tagged or ask your own question.