0

I can't restart my EC2 instance, and there are important data in both the EC2 instance and external EBS volume.

Now I want to mount the EBS in my new temporarily created EC2 instance, and fix that old EC2 instance later. I detached the EBS volume in the AWS Console, but the EBS state is still remains in `i-6da1cf05:/dev/sdf (detaching)' state and can't be attached to the new EC2 instance.

What can I do now?

3

Add --force option to ec2-detach-volume utility:

sudo apt-get install ec2-api-tools
ec2-detach-volume [LOGIN-OPTIONS] --force VOL-ID

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.