Not all kernels show up in Grub boot menu

Steven P. Ulrick lists-fedora at afolkey2.net
Wed Jun 2 00:04:35 UTC 2010


> > Hello Everyone,
> > I have the following in "/etc/grub.conf": installonly_limit=3
> > 
> > Consequently, when I ran "yum update" earlier, a new kernel was installed, 
> > bringing my total to three.  Here is my "grub.conf":
> > 
> > # grub.conf generated by anaconda
> > #
> > # Note that you do not have to rerun grub after making changes to this file
> > # NOTICE:  You have a /boot partition.  This means that
> > #          all kernel and initrd paths are relative to /boot/, eg.
> > #          root (hd0,0)
> > #          kernel /vmlinuz-version ro root=/dev/sda2
> > #          initrd /initrd-[generic-]version.img
> > #boot=/dev/sda
> > default=0
> > timeout=10
> > splashimage=(hd0,0)/grub/splash.xpm.gz
> > #hiddenmenu
> > title Fedora (2.6.33.5-112.fc13.x86_64)
> >         root (hd0,0)
> >         kernel /vmlinuz-2.6.33.5-112.fc13.x86_64 ro root=UUID=c41f05e7-
> > a549-4c68-9512-7a5aaa08b143 rd_LVM_LV=VolGroup00/LogVol01 rd_NO_LUKS 
rd_NO_MD 
> > rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us iommu=soft
> >         initrd /initramfs-2.6.33.5-112.fc13.x86_64.img
> > title Fedora (2.6.33.4-95.fc13.x86_64)
> >         root (hd0,0)
> >         kernel /vmlinuz-2.6.33.4-95.fc13.x86_64 ro root=UUID=c41f05e7-
> > a549-4c68-9512-7a5aaa08b143 rd_LVM_LV=VolGroup00/LogVol01 rd_NO_LUKS 
rd_NO_MD 
> > rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us iommu=soft
> >         initrd /initramfs-2.6.33.4-95.fc13.x86_64.img
> > title Fedora (2.6.33.3-85.fc13.x86_64)
> >         root (hd0,0)
> >         kernel /vmlinuz-2.6.33.3-85.fc13.x86_64 ro root=UUID=c41f05e7-
> > a549-4c68-9512-7a5aaa08b143 rd_LVM_LV=VolGroup00/LogVol01 rd_NO_LUKS 
rd_NO_MD 
> > rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us iommu=soft
> >         initrd /initramfs-2.6.33.3-85.fc13.x86_64.img
> > 
> > 	The problem is that only the second and third listed kernels appear in the 
> > Grub boot menu.
> > 
> > 	I looked a little bit on Google and I did not find this issue mentioned.
> 
> Hello Everyone
> I figured out right away that I could just edit the kernel and initrd lines 
from 
> the Grub boot menu and I could boot the new kernel.  Unfortunately, it 
defaulted 
> to some sub-nouveau driver that would only display 1280x1024 on my 1920x1080 
> monitor.
> 
> Since I found a workaround to my nVidia issue, I tried editing those lines in 
> the Grub boot menu, thereby booting the new kernel.  Works perfectly, and 
> resolution is back to 1920x1080 (using the nVidia driver no less...)
> 
> Following the advice from another message on this thread, I tried re-
installing 
> the kernel RPM's.  This did not fix the problem.  I still only have two items 
on 
> my Grub boot menu.

OK.  This is strange.
1. I ran "yum update" the other night, and the result was the three entries in 
"/etc/grub.conf" that are shown above.  Actually, that is my entire 
"/etc/grub.conf" file.
2. So, almost by inspiration, I looked at /boot/grub/grub.conf and 
/boot/grub/menu.lst (which as you know is a symlink to /boot/grub/grub.conf)

Guess what?  both of the files in the "/boot/grub" directory have only two kernel 
entries.
Also, "/etc/grub.conf" is it's own file, not linked in any way to what appears on 
the boot menu.

So, how did "/etc/grub.conf" get updated when I ran "yum update"?
Also, did  "/etc/grub.conf" used to be a symlink to "/boot/grub/grub.conf"?  If 
so, why is it not on my system?

Anyway, I'm going to copy the grub.conf that was created when I ran "yum update" 
the other night to where Grub will actually be looking for it.  I trust that I 
will now see three kernel entries.

Steven P. Ulrick


More information about the users mailing list