Updating Kernel...missed something...

jmr

Member
Jul 4, 2002
20
0
151
Im trying to update the kernel on a cpanel server. I ran through the process but after reboot....still using the old kernel.

Current kernel - 2.4.18-3

Latest kernel from up2date - 2.4.18-19.7.x

I ran up2date and made sure that i was either using grub or lilo .....checked im running bootloader ....grub it is then.

I copied grub.conf to grub.conf.old to make sure just in case i have an original

On with the update.....

rpm -ivh kernel*

installed fine no problems

rpm -q kernel shows both kernels installed.

pico /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/hda7
# initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-19.7.x)
root (hd0,0)
kernel /vmlinuz-2.4.18-19.7.x ro root=/dev/hda7
initrd /initrd-2.4.18-19.7.x.img
title Red Hat Linux (2.4.18-3)
root (hd0,0)
kernel /vmlinuz-2.4.18-3 ro root=/dev/hda7
initrd /initrd-2.4.18-3.img

OK....so grub has picked up the new kernel....

I gracefully reboot the server

uname -a shows the old kernel rather than the new one.

so what have i missed? some editing of the grub conf?
 

taivu

Well-Known Member
Nov 22, 2001
65
0
306
[quote:b639b4c988][i:b639b4c988]Originally posted by jmr[/i:b639b4c988]
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.18-19.7.x)
root (hd0,0)
kernel /vmlinuz-2.4.18-19.7.x ro root=/dev/hda7
initrd /initrd-2.4.18-19.7.x.img
title Red Hat Linux (2.4.18-3)
root (hd0,0)
kernel /vmlinuz-2.4.18-3 ro root=/dev/hda7
initrd /initrd-2.4.18-3.img [/quote:b639b4c988]

Grub starts counting from zero, so &default=1& means it's loading the second entry, which is your old kernel. Change the line to &default=0& and try again.
 

jmr

Member
Jul 4, 2002
20
0
151
Duh!

Oh do you know.....feel such a duh....

Was looking at the grub conf for so long didnt see that .....thanks for pointing that out....