PLEASE HELP!! URGENT! How can I see howmuch disk space I have left?

I am having major problems with my server, and one of the errors was a mysql 1030 - which means no disk space left.

How can I see what's going on with my server space?
Who is Participating?
prof666Connect With a Mentor Commented:
What you could do is run the following commands:

as root:
du -h --max-depth=1            which will tell you roughly how much space is used under each top level directory. Then consider moving one of the larger ones off to the other partitions. The place a symbolic link between the old location and the new one thus:

cd /
ln -s /some/partition/dir/usr /usr

this will in effect allow existing programs to still work but just shift the physical data. Thus allowing you to use the newly free'd space.
gripeConnect With a Mentor Commented:
Execute df -k from a command prompt. It will show you how much space is used in each of your filesystems.
prof666Connect With a Mentor Commented:
or a more useful use of df is:

df -hT  (gives sizes in GB and displays the filesystem type)
foreverditaAuthor Commented:
OK, I checked this.  The problem is my root partition has no more space left.  It contains all the website information including the database.  Other partitions have tons of space left.  Can someone help me move some stuff to another partition to clear up some space?

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.