Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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?

share|improve this question

1 Answer 1

up vote 3 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
share|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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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