How can I tell how much disk space is available on my Droplet?

Posted June 13, 2012 77.5k views
I've logged into the server ("droplet") using Putty and the root username and password. Now I would like to know how much disk space is remaining that is available to me. How can I find this out?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
7 answers
df -h will report disk space, it doesn't show RAM usage. The line you want for how much disk space you're using is likely /dev/vda. For instant on mine I see:

/dev/vda 20G 2.0G 17G 11% /

The second column shows total space, third column how much you're using, fourth amount free and fifth percent used.

To see how much RAM you're using run:

free -m

Since the df -h was not detailed enough, and I needed each folder’s size and find out where the biggest folder is, I used the tutorial of

  1. SSH into your server
  2. Run the installer sudo apt-get install ncdu
  3. Run the tool sudo ncdu /


You can even navigate into the folders to get more details!

You can use the Linux command df to display your disk space. df -h
which line item is going to tell us our total limit though? I'm using a trial 256 Meg droplet and none of hte line items are matching up with that amount (i.e. tmpfs, /dev/sda etc.)
Running the Linux command:

# df -h

Will give you the quickest and easiest way to see how much diskspace you have after its been formatted and has your partitions mounted.

Is there something more specific that you are looking for?

I get this when running df -h:
df: cannot read table of mounted file systems


In addition to what has already been mentioned about using the df -h command, here is are some step by step instructions on how to find out what files and folders are consuming most of the disk space on your server: