Report this

What is the reason for this report?

Creating additional paritions on a droplet

Posted on October 10, 2018

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!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.