AWS Cheatsheet

Assuming sdf is the available block device you’ve chosen to attach to on your EC2 instance and ebs is the identifier you want to use to distinguish your EBS volume on your EC2 instance:

To mount the EBS volume:

mkfs -t ext2 /dev/sdf
mkdir /mnt/ebs
mount /dev/sdf /mnt/ebs

To unmount the EBS volume:

umount /dev/sdf

To check usage on your mounted volume:

df -h /mnt/ebs

Leave a Reply

Your email address will not be published. Required fields are marked *