All Products
Search
Document Center

Elastic Desktop Service:Extend a data disk partition

Last Updated:Apr 09, 2026

You can use unallocated disk capacity to extend an existing data disk partition or create a new one. This topic describes how to extend an existing data disk partition.

Background

When you create a cloud computer template from a custom image, if the data disk capacity that you specify for the template is larger than the data disk capacity of the source image, any cloud computer created from this template initially has a data disk that matches the size of the source image's data disk. The extra capacity is unallocated and unusable until you extend the data disk partition.

For example:

  • Cloud computer template A (created from custom image B): has a 150 GiB system disk and a 150 GiB data disk.

  • Custom image B: has an 80 GiB system disk and a 70 GiB data disk.

When you create a cloud computer from cloud computer template A, it initially has a 150 GiB system disk and a 70 GiB data disk, with 80 GiB of unallocated space. You can follow the steps in this topic to use this unallocated space.

Procedure

Important

Extending a data disk partition does not typically cause data loss. However, to prevent accidental data loss, create a snapshot to back up your data disk. For more information, see Use snapshots (public preview).

Windows cloud computers

  1. Connect to the cloud computer. For more information, see Getting Started.

  2. On the cloud computer, right-click the Start menu and select Disk Management.

  3. In the Disk Management window, right-click the data disk to extend and select Extend Volume.

    The data disk corresponds to Disk 1, which contains the existing D: partition and the unallocated space. The size of the D: partition matches the data disk size of the custom image, while the unallocated space represents the extra capacity from the cloud computer template.

  4. Follow the wizard to complete the extension.

    After the operation is complete, the system automatically adds the new capacity to the original volume.

Linux cloud computers

  1. Connect to the cloud computer. For more information, see Getting Started.

  2. On the cloud computer, open the Terminal application.

  3. In the command window, run the following command to switch to the root user.

    sudo su
  4. Check the current disk information.

    1. Run the following command to view disk and partition information.

      fdisk -lu
    2. Run the following command to check the file system type of the existing partition.

      df -Th
  5. Extend the data disk partition.

    1. Install the growpart utility.

      1. Update the software sources.

        apt-get update
      2. Install cloud-guest-utils.

        apt-get install -y cloud-guest-utils
    2. Run the following command to extend the partition.

      growpart /dev/vdb 1
      Important

      A space is required between /dev/vdb and 1.

  6. Extend the file system of the data disk partition.

    resize2fs /dev/vdb1          
  7. Verify the result.

    fdisk -l