Mounting an attached ebs volume in EC2
Solution 1:
Here's a complete set of commands that you should run once you've attached the EBS volume to your EC2 instance:
mkfs -t ext3 /dev/sdf # (NOTE - if you created your EBS volume from a snapshot of another volume and want to preserve its data, skip this step)
echo "/dev/sdf /testName ext3 noatime 0 0" >> /etc/fstab
mkdir /testName
mount /testName
df -h # (you should now see a new /testName file system mounted on the EBS volume)
Solution 2:
I had the same problem while mounting an EBS volume that I had taken a snapshot of. The gotcha was that when I attached the volume (e.g., /dev/sdf), it was actually partitioned so (/dev/sdf1) was also created. I was able to mount /dev/sdf1 with no problem.
Solution 3:
Have you created the filesystem yet?
mkfs -t ext3 /dev/sdf