All Products
Search
Document Center

Elastic Compute Service:Extend the partitions and file systems of disks on Windows instances

Last Updated:Jan 23, 2024

After you extend partitions and file systems on a disk of a Windows Elastic Compute Service (ECS) instance, you must continue extending the partitions and file systems of the disk in the instance. The disk can be a system disk or a data disk. This topic describes how to extend the incremental storage capacity of a Windows instance into an existing or added partition.

Prerequisites

  • A disk of the instance is resized in the ECS console. For more information, see Step 1: Resize a disk to extend its capacity.

  • (Recommended) A snapshot of the disk is created to back up disk data. For more information, see Create a snapshot of a disk.

    Note

    In most cases, extending partitions and file systems does not cause data loss. To prevent data loss or exceptions caused by accidental operations, we recommend that you create snapshots to back up disk data.

  • A Windows instance that meets the following requirements is created:

Procedures

In this example, a disk is extended from 40 GB to 60 GB in an ECS instance that runs the Windows Server 2016 64-bit operating system. The actual operations vary based on the operating system that your instance runs.

Step 1: Check whether the partitions of the disk require to be converted

How to check the style of partitions

  1. Connect to the ECS instance.

    For more information, see Connect to a Windows instance by using a password or key.

  2. On the Windows Server desktop, right-click the 开始图标 icon and select Disk Management.

  3. Find the data disk whose partition style you want to check, right-click the blank area around the disk. Then, select Properties from the shortcut menu. In this example, the partition style of Disk 1 is checked.选择属性

  4. In the dialog box that appears, click the Volumes tab and check the Partition style value.

    The following figure shows that the partition style of the disk is MBR.分区格式

Step 2: Extend partitions and file systems

Extend an existing partition and file system

This section describes how to add 20 GB of incremental storage capacity to an existing partition. In this example, the system disk C drive is used.

  1. Connect to the ECS instance.

  2. On the Windows Server desktop, right-click the 开始图标 icon and select Disk Management.

  3. In the Disk Management dialog box, choose Action > Rescan Disks to view the unallocated disk capacity.

    The following figure shows that Disk 0 (C:) is the system disk and Disk 1 (D:) is a data disk.caozuo1

  4. Right-click the blank space in the disk section and select Extend Volume... In this example, the blank space in the Disk 0 section is clicked.

    Note

    If you want to extend a data disk, right-click the blank space in the data disk section. In this example, you can click the blank space in the Disk 1 section. If a disk has multiple partitions, we recommend that you extend the partition that is adjacent to the left of an unallocated partition. Otherwise, Windows converts the selected basic disk into a dynamic disk.

    kuozhan

  5. Follow the instructions in the Extend Volume Wizard dialog box to extend the volume.

    After you extend the partition, the incremental storage capacity is automatically added to the C drive. The following figure shows that the C drive has 60 GB of available capacity.kuozhan2

Create an additional partition

This section describes how to create an additional partition to allocate the 20 GB of incremental storage capacity. In this example, the E drive is created.

  1. Connect to the ECS instance.

    For more information, see Connect to a Windows instance by using a password or key.

  2. On the Windows Server desktop, right-click the 开始图标 icon and select Disk Management.

  3. In the Disk Management dialog box, choose Action > Rescan Disks to view the unallocated disk capacity.

    The following figure shows that Disk 0 (C:) is the system disk and Disk 1 (D:) is a data disk.caozuo1

  4. Right-click the blank space in the Disk 1 section and select New Simple Volume...

    jiandan1

  5. Follow the instructions in New Simple Volume Wizard to extend the volume.

After you extend partitions or file systems, you must check whether partition or file system sizes are the same as the specified values and whether business on the ECS instance runs as expected.