Instructions to Resize the Hard Drive of an Amazon Windows Server
- Go the the EC2 Instances Page of the Management Console
- The instance you want to resize must be turned off
- Select the instance and look at the frame at the bottom write the following:
- The zone, for example, "us-east-1b"
- The instance id, for example, "i-96d931f4"
Note this is also next to the check box
- Right click the line with the check box, and select "Create Image (EBS AMI)"
- Write any convenient name and description in the dialog box. Click "Create This Image"
- On the left hand frame under Elastic Block Storage, select snapshots
- The progress will show for the current snapshot. It could take a long while to
finish the snapshot. You might need to refresh the page to get the lastest
progress. On Mozilla in Linux, I have to refresh
- When it is finished, right click and select, "Create Volume from Snapshot".
A pop up window will appear, where you can choose size, and availability zone
-
Here is a listing
of sizes and instance types which is helpful for choosing
the size of a volume. I usually select 160 Gb, because that is plenty of memory,
and it is the size of the small instance, in case I want to run in 1 processor
mode to save money.
- For availability zone, choose the zone that you noted previously in
step 3.1, for example, "us-east-1b"
Click, "Yes Create", when you have chosen.
- Write down the snap shot id, in the second column. You will need this.
- When it is finished, click Volumes under Elastic Block Storage, on the left frame.
- Select the the Volume you just created. It has the snap shot id, you just noted.
It also has todays date, and time in the Created column.
- Right click and select detach volume.
- Select the unused volume which you just created. It has a blue dot, and available,
in the status column.
- Right click and select attach instance, choose the instance id you saved in step 3.1,
for example, "i-96d931f4".
- enter, "/dev/sda1" as the attachement point
- click, "Yes Attach"
- Go back to the instance pages, slect the instance you have been working,
for example, "i-96d931f4", right click, select start, click "Yes Start"
- RDP to the running computer
-
For Windows 2008
- RDP to the instance>
- start
- Administrative tools
- Computer Management
- Storage, Disk Management
- Select the C: Drive, right click, select Extend
- The default is to use all the empty space, so click Next
- Finish
- You are done so you can shut down
For Linux
- to be written latter