LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-14-2009, 07:36 AM   #1
fcfury
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Rep: Reputation: 0
Upgrading RHEL4.7 kernel but what to keep the old kernel in boot.grub


Curious question I am upgrading the kernel on RHEL4.7 but for testing I am curious to see if I can upgrade the kernel but keep the old kernel for backup purposes. Like when the choice comes up at boot I can pick the old kernel if the upgrade of the new kernel messes up my system. I
 
Old 08-14-2009, 07:46 AM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
That is the default way RHEL updates kernels.

If you're using up2date (RHEL3/RHEL4) or yum (RHEL5) to do the update then it will update grub.conf for you - it will make the new kernel the default but you can interrupt on boot up and select the older kernel.

Example grub.conf from one of my RHEL5 systems:

Code:
# 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,2)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-128.2.1.el5)
        root (hd0,2)
        kernel /vmlinuz-2.6.18-128.2.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet crashkernel=128M@16M
        initrd /initrd-2.6.18-128.2.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-92.1.22.el5)
        root (hd0,2)
        kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet crashkernel=128M@16M
        initrd /initrd-2.6.18-92.1.22.el5.img
This has my current kernel (2.6.18-128.2.1.el5) and the kernel it replaced (2.6.18-92.1.22.el5).
 
Old 08-14-2009, 08:13 AM   #3
fcfury
LQ Newbie
 
Registered: Apr 2009
Posts: 25

Original Poster
Rep: Reputation: 0
Thumbs up

Cool, thanks so much thought that you actually had to edit the grub.conf file.

Quote:
Originally Posted by jlightner View Post
That is the default way RHEL updates kernels.

If you're using up2date (RHEL3/RHEL4) or yum (RHEL5) to do the update then it will update grub.conf for you - it will make the new kernel the default but you can interrupt on boot up and select the older kernel.

Example grub.conf from one of my RHEL5 systems:

Code:
# 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,2)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,2)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux Server (2.6.18-128.2.1.el5)
        root (hd0,2)
        kernel /vmlinuz-2.6.18-128.2.1.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet crashkernel=128M@16M
        initrd /initrd-2.6.18-128.2.1.el5.img
title Red Hat Enterprise Linux Server (2.6.18-92.1.22.el5)
        root (hd0,2)
        kernel /vmlinuz-2.6.18-92.1.22.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet crashkernel=128M@16M
        initrd /initrd-2.6.18-92.1.22.el5.img
This has my current kernel (2.6.18-128.2.1.el5) and the kernel it replaced (2.6.18-92.1.22.el5).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Panic - Unable to Boot RHEL4 *******glibc*******8 teluguswan Red Hat 4 10-18-2010 08:39 AM
RHEL4 Strange kernel panic on boot. Kernel Update no solution RattleSn@ke Red Hat 3 02-07-2009 03:24 AM
Upgrading kernel in encrypted system > boot device name mismatch Mattheus Debian 4 08-04-2008 12:58 PM
RHEL4 kernel 2.6.9-42.0.3.EL panics on boot jcliburn Red Hat 1 11-17-2006 10:28 AM
GRUB won't boot new kernel? Do I have a new kernel? Help! ttnunam Linux - General 8 11-15-2006 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration