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

Hi have a linux server on EC2 and I created a snapshot from that server, the the snapshot has been used to create an AMI, then I created an instance from the AMI. I always get a file system error, cannot mount the file system.

How can I start a new EC2 instance with the data I have in the other server? For data I mean the whole server's EBS, apache, its configuration, its virtual sites and sites' data

share|improve this question
    
The procedure you have is correct and accomplish what you want. However, you probably need to edit your /etc/fstab - remove any entries for mounted volumes (other than root, of course). EBS volumes, and unavailable ephemeral storage typically cause that error. Alternatively, if you use multiple EBS volumes, you will need to specify snapshots of them in the register/run command, so that they can be attached on launch. –  cyberx86 Apr 18 '12 at 20:39
    
but if the new instance never gets ready, how can I connect to it and modify /etc/ftab? –  rtacconi Apr 27 '12 at 7:50
1  
You stop the instance, detach the EBS volume, start a new instance (that doesn't use that EBS volume), attach the EBS volume as an additional device, SSH into the new instance, mount the EBS volume, make your changes, unmount the volume, detach the volume, attach it to the original instance, start the original instance and if all is well, terminate the new instance. (You may also wish to see this article, from Alestic) –  cyberx86 Apr 27 '12 at 17:24
    
@cyberx86, I can't tell you how much I appreciate that tip. It seems obvious now, but was not well documented anywhere I found. –  AgDude Mar 6 '13 at 14:46
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.