The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Updating Kernel...missed something...

Discussion in 'General Discussion' started by jmr, Jan 21, 2003.

  1. jmr

    jmr Member

    Joined:
    Jul 4, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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?
     
  2. taivu

    taivu Well-Known Member

    Joined:
    Nov 22, 2001
    Messages:
    65
    Likes Received:
    0
    Trophy Points:
    6
    [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.
     
  3. jmr

    jmr Member

    Joined:
    Jul 4, 2002
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    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....
     
Loading...

Share This Page