Expand the Amazon root volume of my Amazon EC2 Windows instance

November 8, 2018


I have run out of space on my Amazon Elastic Compute Cloud (Amazon EC2) Windows instance. 

Consequently, how can I dynamically expand the Amazon Elastic Block Store (Amazon EBS) volumes of my Windows instances?

Expand the root volume using the Amazon EC2 console

1.    From the Amazon EC2 console, choose Instances from the left navigation pane.

2.   First,choose the instance you want to expand,and then choose the Description tab, and lastly choose the volume listed for Block devices.

3.   Either choose the EBS ID or on Left Side Choose Volume and then Select the Volume associated with your EC2.

4.    Initially choose the volume,and then choose Actions, and then choose Modify Volume.

5. First,choose the Volume type, and then Enter the size, and then in the case of an io1 volume enter the desired Iops, choose modify, and finally select Yes.

6.   After Refreshing the console page, the expanded volume is immediately available for the OS. You can check this by choosing the Description tab, and information icon next to the State. 

This shows the Original Size and the Target Size.

Note: Windows root volumes are the Master Boot Record (MBR) by default, and they can be extended up to 2TB. See Amazon EBS Volume Types for other considerations.

7.    Open the remote desktop protocol (RDP) session for the instance

To extend a Windows file system

Log in to your Windows instance using Remote Desktop.

In the Run dialog, type diskmgmt.msc and press Enter so that the Disk Management utility opens.

On the Disk Management menu,and then choose Action,and Finally Rescan Disks.

Open the context (right-click) menu for the expanded drive and select Extend Volume.

In the Extend Volume wizard, choose Next. For Select the amount of space in MB, enter the number of megabytes by which to extend the volume. Normally, you set this to the maximum available space.

 The highlighted text under Selected is the amount of space that is added but not the final size the volume will have.

Complete the wizard.

If you increase the size of an NVMe volume on an instance that does not have the AWS NVMe drivers, you must reboot the instance to enable Windows to see the new volume size. For more information about installing the AWS NVMe drivers, see AWS NVMe Drivers for Windows Instances.

Links To Refer:



Leave a Reply:

Your email address will not be published. Required fields are marked *