[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


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

Posted on 2005-04-26
Medium Priority
Last Modified: 2010-04-20
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?
Question by:foreverdita
  • 2
LVL 13

Assisted Solution

gripe earned 800 total points
ID: 13868542
Execute df -k from a command prompt. It will show you how much space is used in each of your filesystems.

Assisted Solution

prof666 earned 1200 total points
ID: 13869163
or a more useful use of df is:

df -hT  (gives sizes in GB and displays the filesystem type)

Author Comment

ID: 13869316
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?


Accepted Solution

prof666 earned 1200 total points
ID: 13870287
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.

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Often times it's very very easy to extend a volume on a Linux instance in AWS, but impossible to shrink it. I wanted to contribute to the experts-exchange community a way of providing a procedure that works on an AWS instance. It can also be used on…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month20 days, 7 hours left to enroll

868 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question