Ravindra BagaleCourses & study guides

Chapter 13: Amazon EBS (Elastic Block Store)

13.4 NVMe device naming (important!)

On modern Nitro-based instances (t3, t4g, m5, m6i, m7i, c5, c7g, r6i ...), EBS volumes appear as NVMe devices, not with the name you chose in the console.

Console "device name" Older Xen instances (t2, m4) Nitro instances (t3 and newer)
/dev/xvda or /dev/sda1 (root) /dev/xvda /dev/nvme0n1
/dev/sdf (extra volume) /dev/xvdf /dev/nvme1n1 (number depends on attach order)
Partition 1 of root /dev/xvda1 /dev/nvme0n1p1

To map an NVMe device to its EBS volume ID:

lsblk -o NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT,SERIAL     # SERIAL shows vol0123456789abcdef0
ls -l /dev/disk/by-id/ | grep -i nvme-Amazon
sudo nvme list                                       # package nvme-cli

NVMe names can change

/dev/nvme1n1 today could become /dev/nvme2n1 after a reboot or re-attach. That is why /etc/fstab must use the filesystem UUID, never the device name. On Amazon Linux, symlinks like /dev/sdf → nvme1n1 are also created for convenience.