aws, ec2

Attach an volume with data to EC2 instance

Step1: Attach the volume to the EC2 linux instance

Step2: Find the name of the disk


Step3: Create a new path to mount the disk

sudo mkdir /mnt/tempdata

Step4: Mount the new disk

sudo mount /dev/xvdf /mnt/tempdata

Step5: Edit fstab and add the entry so that the disk can be automounted

/dev/xvdf /mnt/tempdata ext4 defaults,nofail