Cannot mount an existing EBS on AWS
Solution 1:
Looks like you have partitioned that block device. In this case, you need to mount /dev/xvdf1
, not just /dev/xvdf
.
Solution 2:
For me there was some mysterious file causing this issue.
First check your partitions to make sure you are running an ext3 volume and then:
For me I had to clear the directory using the following command.
sudo mkfs -t ext3 /dev/sdf
Warning: this might delete files you have saved. So you can run ls
to make sure you don't lose important saved files