Creating additional paritions on a droplet

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?

Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

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.

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:

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:

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.