Tag Archives: ebs

Mounting EBS volume in EC2

Refer http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-using-volumes.html for detailed instructions. Create a volume in EBS screen Attach it to your desired EC2 instance From the command line issue the following commands lsblk – to know the device name sudo file -s /dev/xvdf  (if it says “data” thats good to go) sudo mkfs -t ext4 /dev/xvdf (format the new volume) sudo mkdir /my_data (new folder to mount into) sudo mount /dev/xvdf /my_data In case you have expanded the volume size to a bigger value, give the commands below (Refer http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html?icmpid=docs_ec2_console) Note: After modifying…

Read More »