Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungFirst-touch attribution on a cookieless static Nuxt site(21.09.2026 um 02:51 Uhr)
Sichere ProgrammierungWho Is the Customer? It Might Not Be Who Uses the Product(21.09.2026 um 02:57 Uhr)
Sichere ProgrammierungOn My Japanese Team, We Greet Each Other by Saying "You Must Be Tired"(21.09.2026 um 03:06 Uhr)
Sichere ProgrammierungRedis vs Memcached: Complete Comparison(21.09.2026 um 03:16 Uhr)
Sichere ProgrammierungHow Databricks Serverless Compute Cost My Team $14k in One Weekend(21.09.2026 um 03:20 Uhr)
Sichere ProgrammierungStop trying to make Airflow work for Medallion pipelines(21.09.2026 um 03:21 Uhr)
Sichere ProgrammierungI built an app that turns workout videos into actual workouts(21.09.2026 um 03:39 Uhr)
Sichere ProgrammierungFirst-touch attribution on a cookieless static Nuxt site(21.09.2026 um 02:51 Uhr)
Sichere ProgrammierungWho Is the Customer? It Might Not Be Who Uses the Product(21.09.2026 um 02:57 Uhr)
Sichere ProgrammierungOn My Japanese Team, We Greet Each Other by Saying "You Must Be Tired"(21.09.2026 um 03:06 Uhr)
Sichere ProgrammierungRedis vs Memcached: Complete Comparison(21.09.2026 um 03:16 Uhr)
Sichere ProgrammierungHow Databricks Serverless Compute Cost My Team $14k in One Weekend(21.09.2026 um 03:20 Uhr)
Sichere ProgrammierungStop trying to make Airflow work for Medallion pipelines(21.09.2026 um 03:21 Uhr)
Sichere ProgrammierungI built an app that turns workout videos into actual workouts(21.09.2026 um 03:39 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

“Step-by-Step Guide: Attaching and Mounting an EBS Volume on Ubuntu EC2”

Reagiere als Erste:r — dein Feedback zählt!

Cloud computing has changed how we manage storage and servers, making it easier to scale resources without worrying about physical hardware. One of the key components of Amazon Web Services (AWS) is Elastic Block Store (EBS), which provides reliable and persistent block storage for EC2 instances.

Think of EBS as an external hard drive for your cloud server—you can attach it, format it, mount it, and start using it to store data, databases, logs, or application files. Unlike the temporary root storage that comes with an EC2 instance, an EBS volume remains intact even if the instance is stopped or restarted.

In this guide, I’ll walk you through exactly how I attached and mounted an EBS volume to my Ubuntu EC2 instance, sharing the steps, commands, and best practices I used. By the end, you’ll have a clear roadmap to setting up persistent storage on AWS.

1. Prerequisites
Before diving in, list what’s needed:

  • An AWS account

  • An active EC2 instance running Ubuntu

  • Basic knowledge of the AWS Management Console or CLI
  • SSH access to your EC2 inv2. Step 1: Create an EBS Volume

2. Step 1: Create an EBS Volume
Explain how to create a new EBS volume from the AWS console:

  • Go to EC2 Dashboard  → Elastic Block Store → Volumes
  • Click Create Volume  -Sieze:5gb, availability zone:must match your EC2 zone
  • Click Create

3.Step 2: Attach the Volume to Your EC2 Instance

  • Select the volume you just created
  • Click Actions  → Attach Volume
  • Choose your EC2 instance from the list
  • Note the device name (e.g., /dev/xvdf)


From here, the next steps would be:
Step 1: Log in to Your EC2 Instance

First, connect to your EC2 instance using SSH from your local computer:
ssh -i your-key.pem ubuntu@your-ec2-public-ip
your-key.pem = your private key file
your-ec2-public-ip = the public IP of your EC2 server

👉 This puts you inside your Ubuntu server, where you’ll run the next commands.


Step 2: Confirm the New EBS Volume is Attached
After creating and attaching the volume in the AWS console, check if the system sees it:
lsblk

Here:

xvda1 = root volume (where Ubuntu is installed)

xvdbb = the new EBS volume you just attached (unformatted, empty)

Step 3: Format the New Volume
sudo mkfs -t ext4 /dev/nvme1n1

Step 4: Create a Mount Point
sudo mkdir /data


*Step 5: mount it *
sudo mount /dev/nvme1n1/data


**
Create a new file,like writting something into it**
bash
echo "Hello from EBS!" | sudo tee /data/hello.txt

*Verify the file was created *
bash
cat /data/hello.txt

Stop and Start the EC2

Go back to EC2 console→stop the instance

Wait→start it again


SSH back in

check your data:
bash
copy Edit
sudo mount /dev/nvme1n1 /data
cat /data/hello.txt

Data is still there.because EBS is persistent
to know the number of gb used
df -h

📝 Conclusion

In this guide, we walked through the full process of adding and configuring an EBS volume on an Ubuntu EC2 instance. You learned how to:

  • Create and attach a new EBS volume from the AWS Management Console
  • Verify that the volume is visible inside your EC2 instance
  • Format and mount it to a directory for use

By following these steps, you’ve expanded your instance’s storage and ensured that it’s properly configured for long-term use.

💡 Pro Tip: Regularly back up your data with EBS snapshots, and remember that volumes can be resized or moved across instances if your needs grow.

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten “Step-by-Step Guide: Attaching and Mounting an EBS Volume on Ubuntu EC2”

Thematisch verwandte Begriffe: StepbyStep, Guide, Attaching, Mounting · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-93974 | A flaw has been found in SourceCodester Online Reviewer Management Syste…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick