How to force detach EBS from EC2 instance

amazon ec2amazon-ebs

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?

Best Answer

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

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