Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2005
    Posts
    58

    Downgrade kernel?

    Hi,

    How do you downgrade a kernel? I want to downgrade from 2.6.9-22 to 2.6.9-11.el

    I have got this in 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/hda3
    # initrd /initrd-version.img
    #boot=/dev/hda
    default=0
    timeout=5
    splashimage=(hd0,0)/grub/splash.xpm.gz
    hiddenmenu
    title CentOS (2.6.9-22.0.1.EL)
    root (hd0,0)
    kernel /vmlinuz-2.6.9-22.0.1.EL ro root=LABEL=/
    initrd /initrd-2.6.9-22.0.1.EL.img
    title CentOS-4 i386 (2.6.9-11.EL)
    root (hd0,0)
    kernel /vmlinuz-2.6.9-11.EL ro root=LABEL=/
    initrd /initrd-2.6.9-11.EL.img
    Thanks in advance

  2. #2
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,616
    If you change the line to default=1 then reboot you should be ok. Of course downgrading might be an issue due to security holes in the earlier kernel

    Rus
    Russ Foster - Industry Curmudgeon
    Freelance Sysadmin for Hire - email vaserv@gmail.com

  3. #3
    Join Date
    Apr 2002
    Location
    USA
    Posts
    5,783
    First make sure the kernel files are still installed on the server.
    If they are then Change default=0 to default=1 then reboot.

  4. #4
    Join Date
    Dec 2005
    Posts
    58
    Hi, thanks for the replies guys.

    How would I check if the kernels are still installed on the server?

  5. #5
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,616
    Do

    ls -l /boot/vmlinuz-2.6.9-11.EL

    That should show if its still there
    Russ Foster - Industry Curmudgeon
    Freelance Sysadmin for Hire - email vaserv@gmail.com

  6. #6
    Join Date
    Dec 2005
    Posts
    58
    Quote Originally Posted by vaserv
    Do

    ls -l /boot/vmlinuz-2.6.9-11.EL

    That should show if its still there
    It replied with:
    -rw-r--r-- 1 root root 1435513 Jun 8 2005 /boot/vmlinuz-2.6.9-11.EL


    Does that indicate that it's there?

  7. #7
    Join Date
    Jun 2003
    Location
    UK
    Posts
    6,616
    Yes jsut change grub.conf and reboot and you should be fine
    Russ Foster - Industry Curmudgeon
    Freelance Sysadmin for Hire - email vaserv@gmail.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •