LinuxQuestions.org
Visit Jeremy's Blog.
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, 08: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, 08: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,072
Blog Entries: 14

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
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, 09: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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 09:39 AM
RHEL4 Strange kernel panic on boot. Kernel Update no solution RattleSn@ke Red Hat 3 02-07-2009 04:24 AM
Upgrading kernel in encrypted system > boot device name mismatch Mattheus Debian 4 08-04-2008 01:58 PM
RHEL4 kernel 2.6.9-42.0.3.EL panics on boot jcliburn Red Hat 1 11-17-2006 11:28 AM
GRUB won't boot new kernel? Do I have a new kernel? Help! ttnunam Linux - General 8 11-15-2006 10:02 PM

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

All times are GMT -5. The time now is 03:31 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration