I created an EC2 amazon instance (ubuntu) and created a volume from an available snapshot. The volume has been successfully attached to my instance as /dev/sdf
.
I executed the following command: performed: mkdir /space
When I try to execute the following command:
sudo mount /dev/sdf1 /space
I get this message:
mount: special device /dev/sdf1
does not exist
How can I solve this issue ?
Complementing David Levesque answer.
You can check which volumes have been mounted with. The following will list them all:
You will get something like that
Then you can mount it with
I hope it helps
In my CloudFormation UserData section I had the
attach-volume
command andmount
command execute sequentially without a delay. I introduced a 5 second delay between the attach-volume command and mount command and it solved the problem.Try mounting the device "/dev/sdf" instead of "/dev/sdf1".
If that still doesn't work, try mounting it as "/dev/xvdf" or "/dev/xvda1", e.g.:
The explanation for this name mismatch can be found in the "Attach Volume" dialog of the EC2 management screen: