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 .

  • Lynn

    Hello This worked perfectly – I was just really stupid and shutdown without updating. Tried to enter same commands – it says "no such disk" any suggestions please!!

  • Hisahm Sadek

    Did you try changing "sda#" in those commands ? It's different and not the same with all try sda2, sda3, sda4, sda5 … till It works

  • lynn

    I did try it again and it did work – I updated Grub but am not sure how to re-install Linux Kernel? Thank you for your help

  • Hisahm Sadek

    You should go to the synaptic package manager in your system and search for the installed linux kernel that needs to be re-installed and mark them for re-installation .. Or you can just choose an older linux kernel while you boot .. perhaps 2.6.31-15 .. That will work

  • majed jarrar