<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Morris Ndeobi</title>
    <description>The latest articles on DEV Community by Morris Ndeobi (@momoischief).</description>
    <link>https://dev.to/momoischief</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3438865%2F187dfaa9-c7dc-4807-bc85-cae24e23f87b.png</url>
      <title>DEV Community: Morris Ndeobi</title>
      <link>https://dev.to/momoischief</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/momoischief"/>
    <language>en</language>
    <item>
      <title>Understanding AMI,(Amazon Machine Image) , EBS Multi-Attach, Snapshots in AWS – A Beginner’s Guide(Simplified)</title>
      <dc:creator>Morris Ndeobi</dc:creator>
      <pubDate>Sun, 31 Aug 2025 21:28:23 +0000</pubDate>
      <link>https://dev.to/momoischief/understanding-amiamazon-machine-image-ebs-multi-attach-snapshots-in-aws-a-beginners-28b8</link>
      <guid>https://dev.to/momoischief/understanding-amiamazon-machine-image-ebs-multi-attach-snapshots-in-aws-a-beginners-28b8</guid>
      <description>&lt;p&gt;&lt;strong&gt;A&lt;/strong&gt;. &lt;strong&gt;Amazon Machine Image (AMI):&lt;/strong&gt; The Blueprint for Your Server&lt;br&gt;
&lt;strong&gt;What is an AMI?&lt;/strong&gt;&lt;br&gt;
An Amazon Machine Image (AMI) is essentially a template that contains all the information needed to launch an EC2 instance (a virtual server in the cloud).&lt;/p&gt;

&lt;p&gt;Think of it like a recipe or a blueprint:&lt;/p&gt;

&lt;p&gt;A recipe contains a list of ingredients (the software) and instructions on how to combine them (the configuration).&lt;/p&gt;

&lt;p&gt;An AMI contains a snapshot of the root volume (the operating system, application server, and applications), launch permissions, and block device mapping.&lt;/p&gt;

&lt;p&gt;When you launch an EC2 instance, you must select an AMI. AWS provides many pre-configured AMIs (e.g., with Ubuntu, Windows, or Amazon Linux already installed), or you can create your own custom AMI.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Key Components of an AMI:&lt;/strong&gt;&lt;br&gt;
A template for the root volume for the instance (e.g., an operating system, an application server, and applications).&lt;/p&gt;

&lt;p&gt;Launch permissions that control which AWS accounts can use the AMI to launch instances.&lt;/p&gt;

&lt;p&gt;Block device mapping that specifies the volumes to attach to the instance when it's launched.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Real-Life Example:&lt;/strong&gt;&lt;br&gt;
You need to launch ten identical web servers running your company's website. Instead of manually installing Apache, and your code on each one, you:&lt;/p&gt;

&lt;p&gt;Launch one EC2 instance from a standard Linux AMI.&lt;/p&gt;

&lt;p&gt;Install and configure all the necessary software on it.&lt;/p&gt;

&lt;p&gt;Create a custom AMI from this perfectly configured instance.&lt;/p&gt;

&lt;p&gt;Now, you can launch ten new instances directly from your custom AMI. They will all be perfect clones, ready to serve traffic immediately. This is also the foundation for Auto Scaling groups!&lt;br&gt;
&lt;strong&gt;Step-by-Step: Create an AMI&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Launch and configure an EC2 instance (install software, set up environment).&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq741hsvdjn26j1d9cbi9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fq741hsvdjn26j1d9cbi9.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Go to EC2 Dashboard → Instances. Select your instance → Actions → Image → Create Image. Name your image and click Create Image.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feqs08tu5z5hku27lh76i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Feqs08tu5z5hku27lh76i.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frko36v4s1i71vry74xkt.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frko36v4s1i71vry74xkt.png" alt=" " width="800" height="188"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6gddln7awiq5dnjxkjts.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6gddln7awiq5dnjxkjts.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm9pd21y0ic9plodrpzma.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm9pd21y0ic9plodrpzma.png" alt=" " width="800" height="188"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3oydwi6f6ncbwolkk994.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3oydwi6f6ncbwolkk994.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
AWS creates an AMI and stores it under AMIs.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Install Sample Software&lt;br&gt;
SSH into your EC2 and run:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz35ri124xe3d4044hzyf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz35ri124xe3d4044hzyf.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
CopyEdit&lt;br&gt;
sudo apt update -y&lt;br&gt;
sudo apt install nginx -y&lt;br&gt;
sudo systemctl start nginx&lt;br&gt;
sudo systemctl enable nginxg&lt;br&gt;
echo "Hello from Morris Ndeobi AMI" | sudo tee /var/www/html/index.html&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn06x4tjh76wzcm149v12.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn06x4tjh76wzcm149v12.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fklqgb3i8tbh89ftqz04j.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fklqgb3i8tbh89ftqz04j.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu3ozezbbp2emx14izete.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu3ozezbbp2emx14izete.png" alt=" " width="800" height="89"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Run Test in browser&lt;/strong&gt;:&lt;br&gt;
• Visit your EC2’s public IP.&lt;br&gt;
• You should see the message:  "Hello from Morris Ndeobi AMI"&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxj0uekyxoklfouez5dar.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxj0uekyxoklfouez5dar.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;4.Launch EC2 from Custom AMI&lt;/p&gt;

&lt;p&gt;Go to AMIs, select your new image.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fscoeyknyejnzrwev51z9.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fscoeyknyejnzrwev51z9.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxg5pjo4q36bjtquji9bf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fxg5pjo4q36bjtquji9bf.png" alt=" " width="800" height="188"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Test Your New EC2
• Once launched, go to Public IP of the new instance.
• Open in browser.
• You should see: "Hello from Morris Ndeobi AMI"&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkp7mnz9i3b53o8sp0fck.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkp7mnz9i3b53o8sp0fck.jpg" alt=" " width="540" height="1200"&gt;&lt;/a&gt;&lt;br&gt;
Your entire setup is cloned and working!&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;B.&lt;/strong&gt; &lt;strong&gt;EBS Multi-Attach: Definition, requirements, use cases, limitations.&lt;/strong&gt;&lt;br&gt;
&lt;strong&gt;The Definition What does it Entail&lt;/strong&gt;&lt;br&gt;
Think of an EBS Volume as a super-powered, virtual USB thumb drive for your AWS servers (which are called EC2 instances).&lt;/p&gt;

&lt;p&gt;Normally, a USB drive can only be plugged into one computer at a time. That's how regular EBS volumes work.&lt;/p&gt;

&lt;p&gt;EBS Multi-Attach is a special superpower that lets you plug that same exact USB drive into multiple computers at the same time. All the computers can see the files on the drive and read from it or write to it.&lt;/p&gt;

&lt;p&gt;In technical terms: It's a feature that allows a single EBS volume (a type of storage) to be attached to multiple EC2 instances in the same AWS Availability Zone simultaneously.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Requirements (What do you need to use it?)
You can't just use any old USB drive or any old computer for this. There are rules:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;The Right Type of "USB Drive": You must use a io2 or io1 EBS volume type. The common, cheaper type (gp2, gp3) doesn't have this superpower.&lt;/p&gt;

&lt;p&gt;The Right "File System": The volume must be formatted with a cluster-aware file system. Regular file systems (like NTFS or ext4) would get horribly corrupted because the computers wouldn't know how to share the drive without stepping on each other's toes.&lt;/p&gt;

&lt;p&gt;Examples of cluster-aware file systems are GPFS (from IBM), OCFS2 (from Oracle), or Windows Server Failover Clustering.&lt;/p&gt;

&lt;p&gt;Location, Location, Location: All the EC2 instances you're attaching the volume to must be in the exact same data center (the same AWS Availability Zone). You can't stretch this superpower across different cities.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;The Use Cases (When would you use this?)
You wouldn't use this for your personal photos. This is for big, important, specialized jobs.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Use Case 1: The Super-Fast, Shared Database&lt;/p&gt;

&lt;p&gt;Scenario: You have a super-demanding database (like SAP HANA) that needs super low-latency (super fast) storage. Instead of having the database files on one server's slow storage, you put them on one super-fast io2 volume. Then, you attach that same volume to multiple application servers. All the servers can talk to the database files at lightning speed without any delay.&lt;/p&gt;

&lt;p&gt;Use Case 2: The High-Availability Cluster&lt;/p&gt;

&lt;p&gt;Scenario: You have a critical application that must never go down. You set up two servers in a "cluster." Both servers have access to the same set of data on the multi-attach volume. If one server catches on fire and dies, the other server immediately takes over, already having access to all the data. There's no need to copy files over; it's already there!&lt;/p&gt;

&lt;p&gt;Use Case 3: The Giant, Shared Scratch Pad&lt;/p&gt;

&lt;p&gt;Scenario: You're running a massive data analysis job that needs to process a huge amount of temporary data. You can have multiple worker servers all reading from and writing to the same temporary space on the multi-attach volume, making the whole process much faster.&lt;br&gt;
The Limitations (The "Gotchas!")&lt;br&gt;
This superpower comes with big warnings. Remember the LEGOs? If two people try to build different things on the same baseplate at the same time, it becomes a mess.&lt;/p&gt;

&lt;p&gt;The Big One: Corruption Risk: If the applications on your multiple servers do not know how to coordinate with each other, they will corrupt the data. The cluster-aware file system is the "referee" that prevents this. Without it, it's a guaranteed disaster. AWS just provides the shared disk; it's your job to manage the software on top of it.&lt;/p&gt;

&lt;p&gt;Not for Everyday Use: This is a specialized tool for databases and clustered applications. You would never use it to host a regular website or store your personal files.&lt;/p&gt;

&lt;p&gt;Cost: The io1 and io2 volume types are the premium, expensive types of EBS storage. You're paying for both the high performance and the multi-attach feature.&lt;/p&gt;

&lt;p&gt;Limited Reach: Remember, all servers must be in the same data center (Availability Zone). You can't use this for a disaster recovery setup spread across different locations.&lt;/p&gt;

&lt;p&gt;The Perfect Simple Analogy&lt;br&gt;
Think of a Google Doc.&lt;/p&gt;

&lt;p&gt;A normal EBS volume is like a Microsoft Word file on your laptop. Only you can open and edit it. To give it to someone else, you have to email it to them (make a copy).&lt;/p&gt;

&lt;p&gt;An EBS Multi-Attach volume is like a shared Google Doc. You send the link to your teammates, and multiple people can be in the document at the same time, editing and seeing each other's changes live.&lt;/p&gt;

&lt;p&gt;The "cluster-aware file system" is like the rules Google Docs uses to stop you from typing over the same sentence someone else is typing. Without those rules, the document would be a mess!&lt;/p&gt;

&lt;p&gt;I hope that makes it clear! It's a powerful but very specialized tool.&lt;/p&gt;

&lt;p&gt;*&lt;em&gt;Steps on how to Set Up EBS Multi-Attachment&lt;br&gt;
*&lt;/em&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
You must have a viable instance. So go ahead and create two instances. &lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn3ny6hbal2romnhvelax.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fn3ny6hbal2romnhvelax.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fczl0yzryfzxr36nzgv6f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fczl0yzryfzxr36nzgv6f.png" alt=" " width="800" height="309"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F34gno2572dqe4mu22k6e.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F34gno2572dqe4mu22k6e.png" alt=" " width="800" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Go to EC2 → Volumes → Create Volume.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx1emaiqn0sf7581yxjjv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx1emaiqn0sf7581yxjjv.png" alt=" " width="800" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuety69w01smnngucytbf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuety69w01smnngucytbf.png" alt=" " width="800" height="395"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwbz24dfejj2gry96430f.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwbz24dfejj2gry96430f.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3by0j2xy3fqdlc68v5z4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3by0j2xy3fqdlc68v5z4.png" alt=" " width="800" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbmaiuqh3or25wzmcc1ek.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fbmaiuqh3or25wzmcc1ek.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
Attach the volume to each instance via Actions → Attach Volume.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv2ai7e4lqlj3110mcfwj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv2ai7e4lqlj3110mcfwj.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2xczw7g5cmxn93o1zsv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fa2xczw7g5cmxn93o1zsv.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb10dv62lczpzdl2n99wd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fb10dv62lczpzdl2n99wd.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
SSH into each instance and mount the volume using Linux commands.
&lt;strong&gt;lsblk.&lt;/strong&gt;
&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fryfw42t038tifmrdco2u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fryfw42t038tifmrdco2u.png" alt=" " width="800" height="411"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkbrhyrrg1f9mldmwu8zo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkbrhyrrg1f9mldmwu8zo.png" alt=" " width="800" height="107"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now do the same for the second instance volume. &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgpau5yhhywn753rju2j4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fgpau5yhhywn753rju2j4.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2p73z5xqcwsuv9k3w8pl.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F2p73z5xqcwsuv9k3w8pl.png" alt=" " width="800" height="105"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;C.&lt;/strong&gt; ** SNAPSHOTS: &lt;strong&gt;The Incremental Backup for Your Disks&lt;br&gt;
**What is a Snapshot?&lt;/strong&gt;&lt;br&gt;
A snapshot is a backup of an Amazon Elastic Block Store (EBS) volume at a point in time. EBS volumes are the virtual hard disks you attach to your EC2 instances to store data.&lt;/p&gt;

&lt;p&gt;The most important thing to know about snapshots is that they are incremental. This means when you create a new snapshot, only the blocks on the volume that have changed since your last snapshot are saved.&lt;/p&gt;

&lt;p&gt;How Do Incremental Snapshots Work?&lt;br&gt;
You create your first snapshot (Snapshot A). This copies all the data blocks from your EBS volume to Amazon S3 (a highly durable storage service).&lt;/p&gt;

&lt;p&gt;You make some changes to your disk.&lt;/p&gt;

&lt;p&gt;You create a second snapshot (Snapshot B). Snapshot B only saves the data blocks that were changed&lt;br&gt;
Benefits:&lt;br&gt;
Cost-Effective: You only pay for the changed data.&lt;/p&gt;

&lt;p&gt;Durable: Stored automatically in Amazon S3.&lt;/p&gt;

&lt;p&gt;Flexible: You can create a new EBS volume from a snapshot in any Availability Zone, which is key for disaster recovery.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Steps to Recover Volume via Snapshot:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;1.Make Sure You Have EC2 + EBS Volume Running&lt;br&gt;
You should have:&lt;br&gt;
• EC2 running (from earlier)&lt;br&gt;
• EBS volume mounted and data written (e.g., hello.txt)&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;strong&gt;Create a Snapshot&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Go to EC2 Dashboard → Elastic Block Store → Volumes&lt;br&gt;
Select your EBS volume&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3um106js4c2gop2aez4c.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3um106js4c2gop2aez4c.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click Actions → Create Snapshot&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fylse9frq6vkqwzhay7zk.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fylse9frq6vkqwzhay7zk.png" alt=" " width="800" height="394"&gt;&lt;/a&gt;&lt;br&gt;
Name it: my backup snapshot&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjp3lrnk34211p0yp2bkb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fjp3lrnk34211p0yp2bkb.png" alt=" " width="800" height="371"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;. Delete the Original Volume (Optional for Testing)&lt;br&gt;
Warning: This will remove the original data (but we have a backup)&lt;br&gt;
• Detach the volume from EC2&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flrmvgtyt1k8zogaexb84.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Flrmvgtyt1k8zogaexb84.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;br&gt;
• Go to Volumes → Select → Delete&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk4egtnzjjxgddormup0o.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk4egtnzjjxgddormup0o.png" alt=" " width="800" height="394"&gt;&lt;/a&gt;&lt;br&gt;
. Restore Volume from Snapshot&lt;/p&gt;

&lt;p&gt;Go to EC2 → Snapshots&lt;br&gt;
Find your snap shot with the name my backup snapshot&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3ju39ytozwfhnfulgzkp.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F3ju39ytozwfhnfulgzkp.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Delete the Original Volume (Optional for Testing)
Warning: This will remove the original data (but we have a backup)
• Detach the volume from EC2&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz5px9glzlmnglo8sblvu.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz5px9glzlmnglo8sblvu.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;• Go to Volumes → Select → Delete&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fliblyehlwvt3wlonwj9y.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fliblyehlwvt3wlonwj9y.png" alt=" " width="800" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Restore Volume from Snapshot&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Go to EC2 → Snapshots&lt;br&gt;
Find your snapshot (My backup snapshots)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1306wb07blz32yzf31jo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1306wb07blz32yzf31jo.png" alt=" " width="800" height="394"&gt;&lt;/a&gt;&lt;br&gt;
o Same Availability Zone as your EC2&lt;br&gt;
o Volume Type: gp2&lt;br&gt;
or io1/io2 if you are attaching it to more than one ec2&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fixcut6c3blhsdp5wj5lw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fixcut6c3blhsdp5wj5lw.png" alt=" " width="800" height="393"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Click Create Volume&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv4sslpi8w9mucst8nad5.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fv4sslpi8w9mucst8nad5.png" alt=" " width="800" height="394"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Attach the Restored Volume to EC2
• Go to Volumes → Select new one → Attach Volume&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnod882cbircr8qemr3vd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnod882cbircr8qemr3vd.png" alt=" " width="800" height="373"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Choose EC2 instance and set device name (e.g., /dev/xvdf)&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz2flemwrzk8i7vew43cf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz2flemwrzk8i7vew43cf.png" alt=" " width="800" height="395"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Mount and Check Your Data&lt;/strong&gt;
SSH into EC2 and run:&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp6j1278or38zq4293zfj.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp6j1278or38zq4293zfj.png" alt=" " width="800" height="526"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;bash&lt;br&gt;
CopyEdit&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Check device&lt;/strong&gt;&lt;br&gt;
lsblk.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuweetanr2ld1g0f246mo.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fuweetanr2ld1g0f246mo.png" alt=" " width="800" height="107"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mount it&lt;/strong&gt;&lt;br&gt;
sudo mkdir /restore&lt;br&gt;
sudo mount /dev/xvdf /restore&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Create a mount point&lt;/strong&gt;&lt;br&gt;
sudo mkdir /restore&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;View the restored file&lt;/strong&gt;&lt;br&gt;
cat /restore/hello.txt&lt;br&gt;
You should see the file: Hello from EBS!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9wrffl5xzo6i6yovdfkg.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F9wrffl5xzo6i6yovdfkg.jpg" alt=" " width="800" height="464"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now you have successfully created a backup of your EBS volume by taking a snapshot, and then used that snapshot to restore the volume. This means your data is safely stored and can be recovered or replicated whenever needed.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EBS, Snapshots, and AMIs Over View&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;EBS (Elastic Block Store)&lt;/strong&gt;&lt;br&gt;
EBS provides persistent storage for your EC2 instances. It forms the foundation for snapshots and is an essential component of Amazon Machine Images (AMIs).&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Snapshot&lt;/strong&gt;&lt;br&gt;
A snapshot is essentially a backup of an EBS volume. You can use it to restore data, spin up new volumes, or even build AMIs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;AMI (Amazon Machine Image)&lt;/strong&gt;&lt;br&gt;
An AMI acts like a blueprint for launching EC2 instances. It’s created from EBS snapshots and contains everything needed to start a server—operating system, applications, and configurations.&lt;/p&gt;

&lt;p&gt;How it Works in Practice&lt;/p&gt;

&lt;p&gt;When you launch a new EC2 instance from an AMI:&lt;/p&gt;

&lt;p&gt;AWS pulls the EBS snapshots embedded in the AMI.&lt;/p&gt;

&lt;p&gt;Those snapshots are used to recreate the necessary EBS volumes.&lt;/p&gt;

&lt;p&gt;The volumes are then attached to your instance so it can boot up with your chosen setup.&lt;/p&gt;

&lt;p&gt;Wrapping It All Up&lt;/p&gt;

&lt;p&gt;In today’s fast-paced cloud landscape, mastering AMIs, snapshots, and EBS Multi-Attach isn’t just about technical knowledge—it’s about creating infrastructure that’s dependable, scalable, and built for the future. These AWS features give you the control and flexibility to design solutions that solve real-world problems effectively.&lt;/p&gt;

&lt;p&gt;As Alan Kay once said: “The best way to predict the future is to invent it.”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;So here’s the takeaway:&lt;/strong&gt; don’t stop at theory. Try it out. Create your own AMI, set up an automated snapshot routine, and test Multi-Attach in a lab environment. Explore what’s possible, push the limits, and remember—when it comes to the cloud, progress belongs to those who experiment boldly.&lt;/p&gt;

</description>
      <category>cloudcomputing</category>
      <category>aws</category>
      <category>ebs</category>
    </item>
    <item>
      <title>Beginners Guide on how to Attach and Mount an EBS volume on Ubuntu EC2 Instance in AWS</title>
      <dc:creator>Morris Ndeobi</dc:creator>
      <pubDate>Mon, 25 Aug 2025 13:42:31 +0000</pubDate>
      <link>https://dev.to/momoischief/beginners-guide-on-how-to-attach-and-mount-an-ebs-volume-on-ubuntu-ec2-instance-in-aws-506</link>
      <guid>https://dev.to/momoischief/beginners-guide-on-how-to-attach-and-mount-an-ebs-volume-on-ubuntu-ec2-instance-in-aws-506</guid>
      <description>&lt;p&gt;When working with Amazon EC2 instances, storage is a crucial part of your setup. While the root volume (the one that comes with your instance) is enough for basic usage, you’ll often need additional storage for applications, logs, or databases. That’s where Amazon Elastic Block Store (EBS) volumes come in.&lt;/p&gt;

&lt;p&gt;In this guide, i will show you step-by-step work around on how to  attach and mount an EBS volume to an Ubuntu EC2 instance. This tutorial is beginner-friendly, so even if you’re just starting with AWS, you’ll be able to follow along.&lt;/p&gt;

&lt;p&gt;🛠 &lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Before we start, make sure you have:&lt;/p&gt;

&lt;p&gt;An AWS account.&lt;/p&gt;

&lt;p&gt;A running Ubuntu EC2 instance.&lt;/p&gt;

&lt;p&gt;SSH access to your EC2 instance, via Gitbash or command prompt. &lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 1&lt;/strong&gt;:&lt;br&gt;
Create an EBS Volume&lt;/p&gt;

&lt;p&gt;Open the AWS Management Console → go to EC2.&lt;/p&gt;

&lt;p&gt;In the left menu, click Volumes under Elastic Block Store.&lt;/p&gt;

&lt;p&gt;Click Create volume.&lt;/p&gt;

&lt;p&gt;Volume type: Choose gp3 (general-purpose SSD).&lt;/p&gt;

&lt;p&gt;Size: For this demo, select 5 GiB.&lt;/p&gt;

&lt;p&gt;Availability Zone: Must be the same AZ as your EC2 instance (e.g., us-east-1a).&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8mlle9aicjl4rpt9za6d.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F8mlle9aicjl4rpt9za6d.png" alt=" " width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwbrri7t1hazkb9brejkq.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fwbrri7t1hazkb9brejkq.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fql842ozdz1y9lkluehbw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fql842ozdz1y9lkluehbw.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;✅ You now have an unattached EBS volume.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; &lt;/p&gt;

&lt;p&gt;Attach the EBS Volume to the EC2 Instance&lt;/p&gt;

&lt;p&gt;Go back to the Volumes page.&lt;/p&gt;

&lt;p&gt;Select your newly created volume.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu4ypujxi68j8svx4mm2k.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fu4ypujxi68j8svx4mm2k.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Click Actions → Attach volume.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7mzk0txv0hsrpv634v2i.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F7mzk0txv0hsrpv634v2i.png" alt=" " width="800" height="447"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Select your running EC2 instance.&lt;/p&gt;

&lt;p&gt;For device name, enter /dev/xvdf (or leave the default /dev/sdf).&lt;/p&gt;

&lt;p&gt;Click Attach.&lt;/p&gt;

&lt;p&gt;✅ The volume is now attached to your instance, but not yet usable.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 3&lt;/strong&gt;:&lt;br&gt;
Connect to Your EC2 Instance&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi9f1t48vo79s33e8f2yh.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fi9f1t48vo79s33e8f2yh.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Open your terminal and connect to your instance via SSH:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk4gawnl8v4pl3peumssb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fk4gawnl8v4pl3peumssb.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;ssh -i your-key.pem ubuntu@&lt;/p&gt;

&lt;p&gt;Step 4: Verify the Attached Volume&lt;/p&gt;

&lt;p&gt;Run this command to list block devices:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;lsblk&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmg09opy2a6onnyldwljg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmg09opy2a6onnyldwljg.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 5&lt;/strong&gt;:&lt;br&gt;
Format the Volume (First-Time Use)&lt;/p&gt;

&lt;p&gt;If this is a new volume, you need to create a filesystem on it:&lt;/p&gt;

&lt;p&gt;sudo mkfs -t ext4 /dev/xvdf&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6kawifaizofyxhj5bidb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F6kawifaizofyxhj5bidb.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Step 6: Create a Mount Point&lt;/p&gt;

&lt;p&gt;Create a directory where you’ll mount the volume:&lt;/p&gt;

&lt;p&gt;sudo mkdir /data&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcb61ghc4ls4hqieuy0ka.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fcb61ghc4ls4hqieuy0ka.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 7&lt;/strong&gt;: &lt;/p&gt;

&lt;p&gt;Mount the EBS Volume&lt;/p&gt;

&lt;p&gt;Now, mount the volume to the directory:&lt;/p&gt;

&lt;p&gt;sudo mount /dev/nvme1n1 /data&lt;/p&gt;

&lt;p&gt;Check if it worked:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;df -h&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1cibc2pvjun3ocv1c3ar.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1cibc2pvjun3ocv1c3ar.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;You should see /dev/nvme1n1 mounted at /data. 🎉&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 8&lt;/strong&gt;: &lt;br&gt;
Enter a text file.&lt;br&gt;&lt;br&gt;
bash &lt;br&gt;
echo "Hello from NDEOBI!" |sudo tee/data/hello.txt &lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkgim0djhm1l0xupjf886.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fkgim0djhm1l0xupjf886.png" alt=" " width="800" height="163"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;now verify that the text file was created&lt;br&gt;
bash &lt;br&gt;
cat /data/hello.txt&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fshtzsyew6a9v4r69vyvf.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fshtzsyew6a9v4r69vyvf.png" alt=" " width="800" height="79"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Step 9&lt;/strong&gt;:&lt;br&gt;
Now you have to stop and restart the instance that was created. and then SSH with the command &lt;br&gt;
ssh -i /c/Users/username/Downloads/yourkeynote.pem ubuntu@ ip add&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F22b61f2o8m3lf7o2y0em.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F22b61f2o8m3lf7o2y0em.png" alt=" " width="800" height="449"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0x5dz5wujvl6bez0c5pw.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F0x5dz5wujvl6bez0c5pw.png" alt=" " width="800" height="450"&gt;&lt;/a&gt;&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frrtr4ma3kopvqh3713kr.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Frrtr4ma3kopvqh3713kr.png" alt=" " width="800" height="448"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;check your data &lt;br&gt;
bash &lt;br&gt;
copy edit &lt;br&gt;
sudo mount /dev/nvme1n1 /data&lt;br&gt;
cat /data/hello.txt&lt;br&gt;
&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmbivktqx3qvzohgzkbge.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fmbivktqx3qvzohgzkbge.png" alt=" " width="753" height="128"&gt;&lt;/a&gt;&lt;br&gt;
Save and exit.&lt;/p&gt;

&lt;p&gt;✅ Conclusion&lt;/p&gt;

&lt;p&gt;You’ve just learned how to:&lt;/p&gt;

&lt;p&gt;Create an EBS volume.&lt;/p&gt;

&lt;p&gt;Attach it to an Ubuntu EC2 instance.&lt;/p&gt;

&lt;p&gt;Format and mount it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;important notice&lt;/strong&gt;: The device name when choosing your volume device name will change from /xvdbb to nvme1n1. you should continue with this device name in your ssh. &lt;/p&gt;

&lt;p&gt;With these steps, you can easily scale your EC2 storage as your needs grow.&lt;/p&gt;

&lt;p&gt;👉 Pro tip: Always double-check the availability zone when creating an EBS volume, otherwise you won’t be able to attach it to your instance.&lt;/p&gt;

</description>
      <category>aws</category>
      <category>cloudstorage</category>
      <category>cloudpractitioner</category>
      <category>ubuntu</category>
    </item>
  </channel>
</rss>
