[CentOS] system "stuck" with 2.6.18-128 kernel. how to move to2.6.18-194.17?

Brunner, Brian T. BBrunner at gai-tronics.com
Mon Oct 4 08:47:53 EDT 2010


 

> -----Original Message-----
> From: centos-bounces at centos.org 
> [mailto:centos-bounces at centos.org] On Behalf Of Aleksey Tsalolikhin
> Sent: Sunday, October 03, 2010 1:17 AM
> To: CentOS mailing list
> Subject: [CentOS] system "stuck" with 2.6.18-128 kernel. how 
> to move to2.6.18-194.17?
> 
> Hi.  I just noticed I had a CentOS 5.3 system that I updated to CentOS
> 5.5 a few days ago,
> and I just ran "yum -y update" again to get the latest 
> kernel, and I just noticed it still has the old 2.6.18-128 
> kernel instead of the new 2.6.18-194.17.  What gives?
> 
> /etc/grub.conf points at 2.6.18-194.17, but when I reboot, 
> 2.6.18-128 comes up.
> 
> Any suggestions?
> 
> Thanks,
> -at
> 
> 
> myserver# yum -y update
> ...
> myserver# reboot
> .....
> 
> myserver# uname -a
> Linux hwd-ddc-sonydb-prod 2.6.18-128.4.1.el5 #1 SMP Tue Aug 4 
> 20:19:25 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux myserver# 
> cat /etc/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/md1
> #          initrd /initrd-version.img
> #boot=/dev/md0
> default=0
> timeout=5
> splashimage=(hd0,0)/grub/splash.xpm.gz
> hiddenmenu
> title CentOS (2.6.18-194.17.1.el5)

Caveat: I am not a grub guru, and don't play one on TV.
This is the only "title" line in your grub.conf, so it's the only entry
in your grub.conf as far as grub cares.

>         root (hd0,0)
>         kernel /vmlinuz-2.6.18-194.17.1.el5 ro root=/dev/md1
>         initrd /initrd-2.6.18-194.17.1.el5.img title CentOS 
> (2.6.18-194.11.4.el5)
>         root (hd0,0)
>         kernel /vmlinuz-2.6.18-194.11.4.el5 ro root=/dev/md1
>         initrd /initrd-2.6.18-194.11.4.el5.img title CentOS 
> (2.6.18-128.4.1.el5)
>         root (hd0,0)
>         kernel /vmlinuz-2.6.18-128.4.1.el5 ro root=/dev/md1
>         initrd /initrd-2.6.18-128.4.1.el5.img myserver# rpm -q kernel

This is the last kernel line, so it's the one that grub acts on.
Result: You boot 2.6.18-128.4.1.el5

Method to test: check your menu screen at boot time, see if there is
only 1 entry; put 'title' in front of '(2.6.18-194.11.4.el5)' and
'(2.6.18-128.4.1.el5)' in grub.conf, reboot, and see if you now have 3
entries in the grub boot menu screen; see if putting in the two title
lines causes 'default=0' to boot 2.6.18-194.17.1.el5

/blather

> kernel-2.6.18-128.4.1.el5
> kernel-2.6.18-194.11.4.el5
> kernel-2.6.18-194.17.1.el5
> myserver#
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
> 
*******************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed. If you have received this email in error please
notify the system manager. This footnote also confirms that this
email message has been swept for the presence of computer viruses.
www.Hubbell.com - Hubbell Incorporated**



More information about the CentOS mailing list