All Products
Search
Document Center

Elastic Compute Service:Repartition a Windows disk with Shrink Volume

Last Updated:May 15, 2026

Shrink an existing partition to free up unallocated space and create a new partition on a Windows disk.

Important

After you shrink a volume, the original partition cannot be extended because no adjacent unallocated space remains. Proceed with caution.

Prerequisites

A snapshot is created for the target disk. See Manually create a single snapshot.

Note

Shrinking a volume does not delete data. Windows rearranges data in the file system to generate unallocated space. We recommend that you create a snapshot before you proceed.

Procedure

This example uses Windows Server 2016.

  1. Connect to the ECS instance. See Connect to a Windows instance by using Workbench.

  2. On the desktop, right-click the Start icon icon and select Disk Management.

  3. In Disk Management, choose Actions > Rescan Disks to view disk partitions and capacities.

    Disk 0 (C:) is the system disk and Disk 1 (D:) is a data disk. This example uses Disk 1 (D:).

    image

  4. Right-click the disk partition you want to shrink and select Shrink Volume.

    image

  5. In the Shrink D: dialog box, specify a value for Enter the amount of space to shrink in MB and click Shrink.

    Note
    • Enter the amount of space to shrink in MB: the unallocated space available for the new partition. The default value is the maximum shrinkable space. In this example, the value is set to 200,000 MB.

    • Total size after shrink in MB: the remaining size of the original partition after shrinking.

    Enter the amount of space to shrink in MB + Total size after shrink in MB = Total size before shrink in MB. As shown in the following figure, 200,000 MB + 107,070 MB = 307,070 MB.

    image

    After the shrink completes, Disk 1 has 200,000 MB (195.31 GB) of Unallocated space.

  6. In Disk Management, right-click the unallocated area and select New Simple Volume.

    image

  7. In New Simple Volume Wizard, follow the prompts with default settings to create a volume.

    After the volume is created, the E drive appears.

    image

References