Cloud VPS: [Ubuntu] How to add a volume and format the disk

Note: this procedure describes partitioning and formatting an additional disk with only a single partition and the ext4 filesystem. Multiple partitions and other filesystems are out of the scope of this article.

In order to add a volume to your cloud server, you'll need to log into the WebControlCenter at  If you need login help, please see our article on the subject.

1. Once logged into your VPS account in the WebControlCenter, go to the Server menu, then select VPS Management.

2. On the VPS Management page, go to the Disk Management tab.

3. On the Disk Management page, click Add Volume.

4. From the drop down, select the size of your disk, then click Save.

5. Adding the new volume may take a few minutes to complete.

5.  Now that the volume is added, you'll need to access your server via SSH to format the disk. First, you'll need to identify the disk device you wish to configure. From an SSH session, execute 'ls /dev/ -la'. Your OS disk is 'sda' and your additional disks will be 'sdb', 'sdc' and so on

6. (Method #1) Use the 'configure-disks' command to partition a disk. From an SSH session, execute 'sudo configure-disks'. A menu will display disks you can select to configure. Once a disk is selected, it will be partitioned and you will be asked where you want to mount it (hit 'enter' for a default path).

7. (Method #2) Manually partition and format a disk.

a. Note: this step uses the disk '/dev/sdb' as an example; modify the device name accordingly.

b. From an SSH session, execute 'sudo fdisk /dev/sdb'. You will be placed into the fdisk menu.

i. Press the 'n' key to create a new partition.
ii. Press the 'p' key for a primary partition.
iii. Enter '1' for the partition number.
iv. Press enter to accept the default first cylinder value.
v. Press enter to accept the default last cylinder value (highest cylinder; end of disk).
vi. Press the 'w' key to write the partition table to the disk.

c. Format the new partition, which will be '/dev/sdb1'.

i. Execute 'sudo mkfs.ext4 /dev/sdb1'.
ii. Edit the fstab file to auto-mount the disk.

1. Execute 'sudo nano /etc/fstab', appending the following line at the bottom.

/dev/sdb1 /mnt/data ext4 defaults,noatime,nodiratime 0 2

2. Save and exit nano with Ctrl-X and 'y'.
3. Mount the disk by executing ‘mount -a’.

Add Feedback