By lfarnell
Is it at all possible to create additional partitions on a droplet? I was hoping to give /tmp its own partition but it doesn’t look like this is possible following this tutorial. Is this limitation imposed by the way the hypervisor presents the disk?
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!
Droplets are created to span across the whole allocated disk. But you can shrink the main partition on the droplet (vda1) and free up some disk space to further partition it. There’s an article on how to do this: https://www.ismay.ca/2015/10/repartition-a-debian-digital-ocean-droplet/
But I don’t recommend it. There are so many things that can go wrong - namely data loss. If this is a test server and you don’t care about the data, by all means, break a leg! Otherwise don’t risk it.
You can also add a volume, partiton it, and mount it. But /tmp is such a frequently used folder that performance could be affected if you use a remote block storage.
My recommendation is create a block device on top of your FS. It’s detailed in this article: https://linuxfundasite.wordpress.com/2016/08/22/increase-the-size-of-disk-space-tmp-usrtmpdsk/
You’ll probably need to stop all services that make use of /tmp so you can safely back it up and create the new partition. But this is much safer than anything else.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.