Find the Best Cosmetic Hospitals

Explore trusted cosmetic hospitals and make a confident choice for your transformation.

“Invest in yourself — your confidence is always worth it.”

Explore Cosmetic Hospitals

Start your journey today — compare options in one place.

EC2 – EBS Volume Demo:

In this tutorial we are going to Explore and setup extra volume to EC2 instance

Step 1 – Login to AWS console, launch EC2 launch wizard page.

New EC2 console

Step 2 – Launch and Ec2 instance – traverse to Storage selection block.

It will look something like this, and default view where an EC2 is having root volume only

Now we will add another volume – click on add new volume button

Have added another EBS volume, of size 2gb and of type GP2. Termination protection is on – means it will be terminated if and when EC2 instance gets terminated.

Device column stores information about the path where we would be mounting the addition volume.

Snapshot column gives us option about taking base backup snapshot – new volume would be created from that . More on this in the upcoming EBS tutorials Stay Tuned 🙂

Launch the EC2 instance now, keep the key pair handy. SSH into the EC2 once its initialised.

Step 3 – Setting up the new addition volume in the EC2.

After SSH, you will have window like below, I’m using Mac Terminal for SSH. Windows we can use putty.

Lets list all the volumes attached to the EC2 instance

// this will return all the volumes attached
$ lsblk Code language: JavaScript (javascript)

We should get something like this, if not trying going back to EC2 details and see if you have missed anything in Step 2 above.

So it’s showing we have two volumes xvda and xvdb. Out of which xvda is mounted as root volume ‘/’ and the other one is not.

xvdb is the volume which we have selected additional volume.

Now we fill format the new volume with file system type and post the we would mount it. After which can be used.

Follow along with me.

// if this returns data means new added volume is not having file system
$ sudo file -f /dev/xvdbCode language: JavaScript (javascript)

For me it came data after executing above command, as we choose blank in snapshot column.

Let’s create a file system in the volume.

// this will create file system
$ sudo mkfs -t xfs /dev/xvdbCode language: JavaScript (javascript)

We will create mount point, to mount this volume.

$ sudo mkdir /newvolume

Mount the volume to this mount point

$ sudo mount /dev/xvdb /newvolume

Let’s try to list attached volumes now – try lsblk command again.

If you see something like this – you are good to go.

Thank you for reading, Have a great day and and awesome year !!

Gaurav Bajpai

Find Trusted Cardiac Hospitals

Compare heart hospitals by city and services — all in one place.

Explore Hospitals
MotoShare.in offers unparalleled convenience and affordability in bike rentals, allowing users to enjoy hassle-free rides for commuting, exploring, or leisure trips. With a wide range of bikes and scooters, it’s your trusted partner for all two-wheeler needs.

Related Posts

AWS CLI Credentials Setup: Configure, Verify, and Secure Access

Learn how to configure AWS credentials with the AWS CLI, verify your identity, and understand where credentials are stored. This updated guide also compares profiles, environment variables, and role-based access.

Read More

Provision an AWS EC2 Instance with Chef (Legacy ChefDK Workflow)

A practical, step-by-step walkthrough for provisioning an AWS EC2 VM using the classic ChefDK and chef-provisioning approach. Includes workflow, commands, recipe examples, and validation checks for legacy environments.

Read More

EC2 Boot from EBS Explained: Architecture, Trade-offs, and an AWS CLI Workflow

Booting Amazon EC2 instances from Amazon EBS was a major shift from ephemeral root disks to persistent root volumes. This guide explains what changed, why it mattered, and how to use the model safely in modern operations.

Read More

Deploying Java EE on Amazon EC2 with EC2Deploy: Workflow, Script, and Modern Lessons

This revised guide breaks down the original EC2Deploy approach for provisioning EC2 instances, deploying Java EE apps, and running JMeter tests. It also maps the same deployment pattern to modern DevOps practices.

Read More

EC2Deploy and the Cloud Tools Maven Plugin: Architecture, Goals, and Deployment Workflow

This revised guide explains what the 2010 EC2Deploy and Cloud Tools release actually introduced, how its components fit together, and how the Maven goals map to deployment operations on EC2. It also covers what modern teams should verify before relying on this legacy toolchain.

Read More

Cloud Tools Adds Amazon EBS Support: Durable EC2 Storage for Database Workloads

This historical update covers when Cloud Tools introduced Amazon EBS support for EC2 applications, including database-backed deployments. It explains the supported storage modes, the backup/restore flow, and practical command-level equivalents.

Read More