I have a droplet with 30GB hard drive, and 100GB additional block storage volume. That volume is mounted at /mnt/p4-shareddepot, and accessable there for read and write. How do I get the available space on this drive? As below, I run the df command of that location but it still just returns the result for the original 30GB drive. Any way to check this?
┌──[Mon Jan 22 11:50:38 **********@************ : /mnt/p4-shareddepot]
└─> $ df -h /mnt/p4-shareddepot
Filesystem Size Used Avail Use% Mounted on
/dev/vda1 30G 8.2G 21G 28% /
Thanks Richard
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
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.
Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.
Run
df -h
without any other arguments. That should output space usage details for all available filesystems./mnt/p4-shareddepot
is showing your Droplet’s local storage filesystem because the directory itself is technically part of it, not the block storage volume. Every file or directory that is inside of it, however, is located on the block storage volume. So, if you rundf -h /mnt/p4-shareddepot/file
, you should see the block storage volume’s space usage.Hi Kamaln
Unfortunately this has not worked for me, I still can only see the droplet’s filesystem: