4

I am confused. Our EC2 instance is showing that the disk is 98% full. The output from df -Th shows:

Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/xvda1    ext4    7.9G  7.7G  172M  98% /

But if I run ncdu to see where the space has gone it shows that only 1.4gb is used:

 742.4MiB [##########] /usr
 505.1MiB [######    ] /var
  75.3MiB [#         ] /lib
  55.3MiB [          ] /opt
  31.8MiB [          ] /boot
  21.2MiB [          ] /lib64
  18.8MiB [          ] /etc
  11.4MiB [          ] /sbin

Doing a search for large files throws nothing up either.

I am confused as to where the other 5gb has gone and really need to recover it as the server is dangerously low on space.

Any idea where the space has gone and how I can recover it?

  • 3
    Does this help serverfault.com/questions/490704/… ? – user9517 Apr 4 '13 at 17:50
  • can you post your find command? – Chakri Apr 4 '13 at 17:59
  • Iain, yes it does, thanks for directing me to it (I did search for a similar post beforehand, honest!) – williamsdb Apr 4 '13 at 18:03
  • Not sure if this means your problem has been solved or not. Please self-answer if it has and accept the answer when the timer has expired. Thanks! – Andrew B Apr 4 '13 at 22:02
1

The link provided by Iain in the comments and repeated below sort out the issue:

Ubuntu server: hard drive always full

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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