Author: David FinsterLast Updated: Tue, Nov 17, 2020
This guide explains how to add, grow, and shrink partitions of a Vultr cloud server with GParted, a graphical partition editor. If you have upgraded your cloud server with a larger disk or need to expand a partition while preserving data, follow these steps. A cloud server instance is sometimes called a Virtual Private Server or VPS.
This guide temporarily boots your cloud server with the SystemRescueCD ISO to run GParted, which works with a majority of operating systems.
⚠ NOTE: These operations make destructive changes to the cloud server's file system. You can lose data if you make a mistake following these directions. Make a snapshot of the server before performing any of these steps. If your data is critical, please test the snapshot before proceeding. Deploy a new test instance with the snapshot, then verify the test instance boots and has the correct data.
startxat the root prompt.
When the graphical desktop appears, navigate to System > GParted.
Before making changes, check the partition for errors. Right-click on the partition and select Check, which adds the operation to the pending queue.
To run the check, click the Apply All Operations icon in the toolbar. Click Apply on the pop-up confirmation dialog.
Right-click on the partition you want to modify. Choose Resize/Move.
Adjust the partition by dragging the size handles, or adjust the size fields, then click Resize/Move, which adds the operation to the pending queue. Next, click the Apply All Operations icon to resize the partition.
Right-click an unallocated area and choose New.
Enter the partition information, then click Add to add the operation to the pending queue. Next, click the Apply All Operations icon to resize the partition.
When all operations are complete, detach the ISO and reboot the server. Navigate to the server information page and click Remove ISO.
If you added or removed partitions, you may need to adjust the mount points in
/etc/fstab. Refer to the fstab documentation or the documentation specific to your distribution.