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

June 13, 2012 23k 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?
6 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
  • Excellent. :)

  • This was exactly what I needed, was looking for the best way to tell when I needed to upgrade a droplet to a larger size

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

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!

Have another answer? Share your knowledge.