AWS + Linux Combo — Part 8
Storage, Disks & Volumes

Servers are useless without storage. In cloud, storage is separate, attachable, and persistent. This part explains how AWS storage and Linux disks actually work together.

What Is AWS EBS?

Elastic Block Store (EBS) is a virtual hard disk. It exists independently from your EC2 instance.

Check Disks in Linux

lsblk

This shows all attached disks. New EBS volumes appear as /dev/xvdf, /dev/nvme*, etc.

Create File System

mkfs.ext4 /dev/xvdf

Formatting prepares the disk for data. Never format a disk that already has data.

Mount the Volume

mkdir /data
mount /dev/xvdf /data

Now the disk is usable at /data.

Permanent Mount (fstab)

Without this, disk disappears after reboot.

nano /etc/fstab
/dev/xvdf  /data  ext4  defaults,nofail  0  2

Real-World Use Cases

Mindset Tip

OS disk is temporary. Data disk is sacred. Always separate them.

Next: Production Server Setup →
Disclaimer:
Always double-check disk names before formatting. One wrong command can destroy data permanently.