LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 11-22-2003, 08:08 PM   #1
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Rep: Reputation: 15
Updated Kernel - Choosing at boot


I just installed Red Hat 9 2 days ago, and I downloaded all the updated recommended by the Red Hat updater. One was the new kernal "kernel-2.4.20-20.9" I installed it successfully, but after I restarted there were 2 kernels in my GRUB boot list. The new one was on the top, and "kernel-2.4.20-8" was on the bottom. The older was was also highlighted as the default one to use, for some reason. Can I change it so the newer one always boots? Anyone know why this would happen?

Thanks,
link
 
Old 11-22-2003, 08:14 PM   #2
trickykid
Guru
 
Registered: Jan 2001
Posts: 24,133

Rep: Reputation: 198Reputation: 198
Edit which one you want as the default in your grub.conf file.
 
Old 11-23-2003, 12:27 PM   #3
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Ok, here is what my grub.conf says:

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,0)
#          kernel /vmlinuz-version ro root=/dev/hda2
#          initrd /initrd-version.img
#boot=/dev/hda
default=1
timeout=10
splashimage=(hd0,0)/grub/splash.xpm.gz
title Red Hat Linux (2.4.20-20.9)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-20.9 ro root=LABEL=/
        initrd /initrd-2.4.20-20.9.img
title Red Hat Linux (2.4.20-8)
        root (hd0,0)
        kernel /vmlinuz-2.4.20-8 ro root=LABEL=/
        initrd /initrd-2.4.20-8.img
~

I would assume "default" is the line I need to change...but it's already at 1, shouldn't that say to boot off the top listing?
 
Old 11-24-2003, 10:03 PM   #4
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Anyone have suggestions?
 
Old 11-25-2003, 10:41 AM   #5
zaphodiv
Member
 
Registered: Oct 2003
Distribution: Slackware
Posts: 388

Rep: Reputation: 30
The info page for grub conf says you need default=0 to boot the first entry.

Alternativly you could move the four lines of the second entry to before the other one.

Disclaimer: make sure you have a boot disk that you can use to sort it out if you change somthing that stops the system booting.
 
Old 11-25-2003, 07:38 PM   #6
link1305
Member
 
Registered: Oct 2003
Location: Cleveland, Ohio
Distribution: Gentoo
Posts: 53

Original Poster
Rep: Reputation: 15
Thanks man, that should do the trick
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fedora core 2.6.10.1.771_FC2 updated kernel gets stuck at boot! spaceman27 Linux - Newbie 8 04-14-2005 09:47 PM
updated kernel w/up2date ... now dual boot jcarpio Linux - Software 2 04-12-2004 04:25 PM
kernel-update, a success... BUT... couldn't boot from the updated-kernel Pisces107 Red Hat 7 12-17-2003 02:27 PM
howto boot updated kernel assaflavie Linux - Newbie 1 07-03-2003 09:39 AM
updated kernel now has 3 options to choose on boot centr0 Linux - General 1 02-26-2003 11:39 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration