Mount new EBS volume to AWS EC2 #
The root device is /dev/xvda
. The attached volume is /dev/xvdb
, which is not yet mounted.
[ec2-user ~]$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
xvda 202:0 0 8G 0 disk
-xvda1 202:1 0 8G 0 part /
xvdb 202:80 0 10G 0 disk
TL;DR
sudo mkfs -t xfs /dev/xvdb
sudo mkdir /data
sudo mount /dev/xvdb /data
ls -la /data