Results 1 to 7 of 7
Thread: Downgrade kernel?
-
01-11-2006, 08:25 AM #1Junior Guru Wannabe
- 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
-
01-11-2006, 08:28 AM #2Web Hosting Master
- 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
RusRuss Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email vaserv@gmail.com
-
01-11-2006, 08:30 AM #3Web Hosting Master
- 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.
-
01-11-2006, 08:33 AM #4Junior Guru Wannabe
- 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?
-
01-11-2006, 08:36 AM #5Web Hosting Master
- 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 thereRuss Foster - Industry Curmudgeon
Freelance Sysadmin for Hire - email vaserv@gmail.com
-
01-11-2006, 08:38 AM #6Junior Guru Wannabe
- Join Date
- Dec 2005
- Posts
- 58
Originally Posted by vaserv
-rw-r--r-- 1 root root 1435513 Jun 8 2005 /boot/vmlinuz-2.6.9-11.EL
Does that indicate that it's there?
-
01-11-2006, 08:43 AM #7Web Hosting Master
- 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