Skip to main content

Command Palette

Search for a command to run...

Step by Step process of how to add and initialize EBS Volume on Windows EC2 Instance

Step by Step process of how to add and mount EBS Volume on Ubuntu EC2 Linux Instance

Updated
2 min read
Step by Step process of how to add and initialize EBS Volume on Windows EC2 Instance
A
Associate Software Developer with experience building scalable, production-grade systems and backend services. Strong foundation in data structures, system design, and core computer science concepts, with a passion for learning new technologies and sharing practical engineering knowledge through writing.

Step 1: Creating a volume

  1. Open the AWS Management Console and navigate to the EC2 dashboard.

  2. In the left navigation panel, choose Volumes under the Elastic Block Store section.

  3. Take note of existing Volumes.

  4. Click on Create Volume.

  5. Choose the volume type as General Purpose SSD (gp2).

  6. Set Size to 30GiB.

  7. Select the availability zome same as the availability zome as the instance with which you want to attach this volume.

  8. Scroll down and click Create Volume.

Step 2: Attach the volume to the instance

  1. Select the volume, then click Actions -> Attach volume.

  2. Select the instance in which you want to add the volume.

  3. Select the device name xvdb,if you are attaching the root volume then select /dev/sda1.

  4. Click on Attach volume.

Step 3: Connect to EC2 instance

  1. In the left navigation panel, choose Instances under the Instances section.

  2. Select the instance in which you have attached the volume.

  3. Click on Connect.

  4. Go to RDP client.

  5. Scroll and click on Get password.

  6. Click on Upload private key file and Upload the private key you choose while creating this instance.

  7. Click on Decrypt password.

  8. A password will appear under the RDP client copy this password.

  9. Click on Download remote desktop file.

  10. Open this .rdp file.

  11. Click Connect -> Paste the password -> Click OK -> Click Yes.

  12. The remote desktop will open up.

Step 4: Making the disk online and initializing it

  1. Press Ctrl + r.

  2. Type diskmgmt.msc and press enter.

  3. Right-click on Disk 1 then click Online.

  4. Right-click on Disk 1 again then click Initialize Disk -> OK. If this disk is already initialized then this step will be skipped.

  5. Now right-click on unallocated then click New Simple volume -> Next -> Next -> Next -> Next -> Finish.

  6. Open File Explorer then This PC.

  7. You check a new drive New Volume(D:).

  8. You can create a text file on this drive to check its working.

NOTE: You can also add volume to the instance during the creation of instance by using Add Volume under Configure storage.

AWS Training Chronicles: From Novice to Expert

Part 16 of 22

Follow my journey as I learn AWS from scratch, sharing insights, tips, and hands-on experiences along the way.

Up next

Understanding Amazon Elastic Block Store (EBS): An Introduction

Introduction to Amazon Elastic Block Store (EBS)