published by flevour on Fri, 08/10/2010 - 16:13
Due to a now resolved bug, if you start/stop or reboot an pre-2010-09-09 official ubuntu image running on t1.micro Amazon instance, you would end up with a ec2-brick.
That is, the system would hang on reboot and you would be stuck out of your image with no luck.
The problem was caused by /etc/fstab referring to a partition that is usually available on all other instance types, but not in t1.micro.
These are the steps to follow to fix the problem:
- stop running instance (from now on $INSTANCE);
- detach its root partition (from now on $INSTANCE_ROOT);
- run a new instance ($NEW_INSTANCE) of any type. Just make sure it runs in the same availability zone as $INSTANCE;
- attach $INSTANCE_ROOT to $NEW_INSTANCE as /dev/sda2;
- ssh into $NEW_INSTANCE and mount /dev/sda2 to a directory (e.g.: /mnt);
- edit fstab in $INSTANCE_ROOT, (in my example, edit /mnt/etc/fstab) and comment the line starting with /dev/sdb, save and close;
- logout from $NEW_INSTANCE and stop it;
- detach $INSTANCE_ROOT from $NEW_INSTANCE and reattach it to $INSTANCE;
- start $INSTANCE
SSH will be now back to business! Yay!
Recent comments