PDA

View Full Version : [ubuntu] Missing Kernel Option in Boot List -It is in grub.cfg grub2



Highlander01
January 16th, 2011, 10:29 PM
I went thru the exercise of installing a new kernel.....

I have Grub2
I have the following files in my boot folder:

config-2.6.32.28
initrd.imp-2.6.32.28
vmlinuz-2.6.32.28

I also did update-grub
grub.cfg has 2.6.32.28 above as a menuentry

when I boot up though it does not appear in the list of boot options.

just noticed: maybe I need an abi-2.6.32.28 file or vmcoreinfo-2.6.32.28 file

texla
March 27th, 2011, 04:43 AM
I have a multi-boot setup and this kept happening to me. For some reason I had to go to another ubuntu partition and run a sudo update-grub there and now I have the updated kernels in my grub. Might be because of which one was installed first or something but it worked. Hope this helps.

Hedgehog1
March 27th, 2011, 05:10 AM
If you wish to correct the install location of grub; please to this:

Please boot off your LiveCD/LiveUSB, select TRY

Determine what partition holds your Ubuntu root. In the examples below, the assume that /dev/sda5 is your Ubuntu partition. Yours may be /dev/sdb5 or /dev/sda3 or /dev/sdb3 or whatever... Use that. Also note that your drive MAY be /dev/sdb.

In the Terminal (Menu to: Applications >> Accessories >> Terminal):


sudo mount /dev/sda5 /mnt

sudo grub-install --root-directory=/mnt /dev/sda

The Hedge

:KS

texla
March 27th, 2011, 04:40 PM
Did it - looks good so far - we'll see on the next update. Thanks, Hedge!

oldfred
March 27th, 2011, 05:26 PM
If you want to reset which install is in the MBR you can boot that install and just install grub2's bootloader to the MBR from there.


#reinstall from working (not liveCD) system - first find Ubuntu drive:
sudo fdisk -l
#if it's "/dev/sdb" then just run:
sudo grub-install /dev/sdb
#If that returns any errors run:
sudo grub-install --recheck /dev/sdb
sudo update-grub


If you are alternatively booting multiple installs you can add a boot stanza that always boot the most current kernel. ubuntu always puts a link to the most current kernel in /. So boot the link in root.

from Ranch hand
Note that this does not define the kernel. It defines the partition. It boots the newest boatable kernel that it finds at that partition.

menuentry "Daily on sda13" {
set root=(hd0,13)
linux /vmlinuz root=/dev/sda13 ro quiet splash
initrd /initrd.img
}

You can even turn off osprober and just have the above style entries in 40_custom.