How to recreate a working AMI from recovery snapshot after Aug 8 outage?

1,426

Solution 1

I ran into the same problem when trying to duplicate a machine.

The problem turned out to be the kernel. Both when creating the AMI and the instance I selected default for the kernel image.

To resolve the problem, I recreated the AMI using the same kernel image as the original instance.

Solution 2

Could you try the following command (note -f option instead of --force): sudo fsck -f /dev/xvdg

Hope this helps. Fred

Share:
1,426

Related videos on Youtube

Jebathon
Author by

Jebathon

Updated on September 18, 2022

Comments

  • Jebathon
    Jebathon over 1 year

    Inorder to check if an iFrame is currently open you can use:

    if (window!=window.top) { /* I'm in a frame! */ }
    

    But what if I want to get an alert when an iFrame opens? How can I allow JS to automatically detect an iFrame has been opened on the current page or inserted within the DOM?

  • geekyaleks
    geekyaleks over 12 years
    fsck -f indeed does something more (don't know exactly what; man fsck doesn't say anything about it), so +1. But in any case this doesn't solve the whole problem; I created a snapshot and then an AMI from the fscked volume, and lauched an instance from that, and still get the same "Kernel panic ... Unable to mount root" error in System Log.
  • DCYorke
    DCYorke over 12 years
    To clarify, the default kernel image lacks ext4 support, but the kernel that was used to build the AMI should always be used anyway.
  • Atulmaharaj
    Atulmaharaj almost 10 years
    If only the snapshot remains, it will be very hard to recover. Can you suggest a method to backup this kind of metadata (also, which security groups and user-data are used) with the snapshot or somewhere else?
  • CodingIntrigue
    CodingIntrigue almost 9 years
    Aside from the limited browser support, DOMNodeInserted is deprecated. Mutation observers should be used instead
  • Jebathon
    Jebathon almost 9 years
    Unrelated. That's quite interesting how you can run the code snippet now without jsFiddle. Nice
  • Jebathon
    Jebathon almost 9 years
    For some reason this doesn't work compared to Nicks answer. codepaste.net/jzm7s3
  • kay
    kay almost 9 years
    Probably you are using IE 10 or even something worse. Please see the update to my answer.
  • Jebathon
    Jebathon almost 9 years
    I am using the latest version of Chrome but I will try your try/catch statement.
  • kay
    kay almost 9 years
    Does the code snippet in this page work for you? I am not sure what you intention in codepaste.net/jzm7s3 is, because my snippet does not require any jQuery code.
  • Jebathon
    Jebathon almost 9 years
    When I run the code snippet within that codepaste it executes but there is no detection of an iFrame by using your code. If within the if statment I put Nicks code it works perfectly. If I use your try/catch it works but again through Nicks code.
  • kay
    kay almost 9 years
    Please post a complete self contained example to jsfiddle. Also you did not answer my question if the runnable snippet in my answer works for you.
  • Jebathon
    Jebathon almost 9 years
  • kay
    kay almost 9 years
    Nope, for a synchronous discussion I would demand a proper payment, sorry. Only asynchronous comments are for free. :)
  • Jebathon
    Jebathon almost 9 years
    Stack is forcing me to chat with you. I apoligize