How did I mount an instance store to my `c5d` AWS EC2 instance (Debian 10)?

Step 1

Use the lsblk to view any volumes that were mapped at launch but not formatted and mounted.


It shows that my instance store is nvme0n1:

Step 2

Create a file system on the device using the mkfs command.

mkfs --type ext4 /dev/nvme0n1


Step 3

Create a directory on which to mount the device using the mkdir command.

mkdir /L

Step 4

Use the blkid command to find the UUID of the device.



Step 5

Add the following entry to /etc/fstab to mount the device at the specified mount point. The fields are the UUID value returned by blkid: the mount point, the file system, and the recommended file system mount options.

UUID=55d295e1-837b-4116-a213-d1c0f3bb94de  /L  ext4  defaults,nofail  0  2

Step 6

mount -a