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?

link|improve this question

69% accept rate
feedback

1 Answer

up vote 1 down vote accepted

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

sudo apt-get install ec2-api-tools
ec2-detach-volume [LOGIN-OPTIONS] --force VOL-ID
link|improve this answer
2  
Keep in mind that there's a potential for data loss when you do this. Read more about --force here: docs.amazonwebservices.com/AWSEC2/2010-08-31/… – Garret Heaton Sep 26 '10 at 23:58
feedback

Your Answer

 
or
required, but never shown

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