Ubuntu image won't reboot if running on t1.micro Amazon EC2

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:

  1. stop running instance (from now on $INSTANCE);
  2. detach its root partition (from now on $INSTANCE_ROOT);
  3. run a new instance ($NEW_INSTANCE) of any type. Just make sure it runs in the same availability zone as $INSTANCE;
  4. attach $INSTANCE_ROOT to $NEW_INSTANCE as /dev/sda2;
  5. ssh into $NEW_INSTANCE and mount /dev/sda2 to a directory (e.g.: /mnt);
  6. edit fstab in $INSTANCE_ROOT, (in my example, edit /mnt/etc/fstab) and comment the line starting with /dev/sdb, save and close;
  7. logout from $NEW_INSTANCE and stop it;
  8. detach $INSTANCE_ROOT from $NEW_INSTANCE and reattach it to $INSTANCE;
  1. start $INSTANCE

SSH will be now back to business! Yay!