Shrink an existing partition to free up unallocated space and create a new partition on a Windows disk.
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.
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.
-
Connect to the ECS instance. See Connect to a Windows instance by using Workbench.
-
On the desktop, right-click the
icon and select Disk Management. -
In Disk Management, choose 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:).

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

-
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.

After the shrink completes, Disk 1 has 200,000 MB (195.31 GB) of Unallocated space.
-
-
In Disk Management, right-click the unallocated area and select New Simple Volume.

-
In New Simple Volume Wizard, follow the prompts with default settings to create a volume.
After the volume is created, the E drive appears.

References
-
To create a partition by resizing a disk, see Extend the partitions and file systems of disks on a Windows instance.
-
To roll back disk data with a snapshot, see Roll back disk using snapshot.
-
For disk precautions and FAQs, see FAQ about Elastic Block Storage.