Format And Mount An Attached Volume
Before making available to perform the task you need to perform some taks means you need to formate the disk which is /dev/sdf. And root volume refer to the /dev/xvda.
You can use the following command to check the total no.of disks avalible:
lsblk -l
Steps To Format And Mount An EBS Volume On Linux
Step 1: Connect to the EC2 instance using terminal or putty with the help of SSH.
Step 2: View all the disks which are attached to the instance by using following command.The output of lsblk removes the /dev/ prefix from full device paths.
lsblk
Step 3: Create a filesystem on the EBS volume by using the following command.
mkfs.ext4 /dev/xvdf
Step 4: After formating the EBS volume know mount the EBS volume with EC2 instance by using the following command.
mount /dev/xvdf /mnt/ebs
How to Attach and Mount an Extra Volume to an Linux Instance in AWS?
EBS is a block type durable and persistent storage that can be attached to EC2-instances for additional storage. Unlike EC-2 instance storage volumes which are suitable for holding temporary data EBS volumes are highly suitable for essential and long term data. EBS volumes are specific to availability zones and can only be attached to instances within the same availability zone.