How to Fix GRUB Bug After Updating Kernel to 2.6.31-16
If you’re ubuntu newbie and got such a problem, You will be totally depressed and you would re-install ubuntu again and lose all your data. This issue has been discovered few days ago after updating linux kernel to 2.6.31-16 which delete grub files and you cannot boot into your ubuntu .
Here’s How to Fix this issue - (Source :Ubuntu Forums) :
For Windows Vista/Seven
sh:grub>set root=(loop0)sh:grub>linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda2 loop=/ubuntu/disks/root.disk rosh:grub>initrd /boot/initrd.img-2.6.31-14-genericsh:grub>boot
Note that You would replace sda2 with if you have more partitions so If It didn’t boot with sda2, try sda3, sda4 or sda5
For Windows ME/XP
sh:grub>set root=(loop0)sh:grub>linux /boot/vmlinuz-2.6.31-14-generic root=/dev/sda1 loop=/ubuntu/disks/root.disk rosh:grub>initrd /boot/initrd.img-26.31-14-genericsh:grub>boot
If you managed to boot into ubuntu, Go To Update Manager and Get GRUB Updates . You would also have to re-install Linux Kernel Image for 2.6.31-16 again as It may not boot into your ubuntu .