LinuxQuestions.org
Review your favorite Linux distribution.
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 09-09-2008, 05:06 AM   #1
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 108

Rep: Reputation: 16
Changing my kernel


I'm using a Gentoo, I tried to upgrade my kernel, I downloaded two files provided by the company that provides my dedicated server, bzImage-2.6.24.5-xxxx-std-ipv6-32 and System.map-2.6.24.5-xxxx-std-ipv6-32 to the boot directory. Assume these are the right files for my equipment but if you can't find any problems below, I may have to check that again.

I made a symbolic link in /boot for System.map-2.6.24.5-xxxx-std-ipv6-32 called System.map

My system uses LILO, I edited /etc/lilo.conf to this:

Quote:
prompt
timeout=50
default=linux
boot=/dev/hda
map=/boot/System.map
install=/boot/boot.b
lba32
append=""
#serial=0,9600n8

image=/boot/bzImage-2.6.24.5-xxxx-std-ipv6-32
label=linux
read-only
root=/dev/hda1

image=/boot/bzImage-2.6.24.5-xxxx-grs-ipv4-32
label=linux-old
read-only
root=/dev/hda1
And then I rebooted, but when I run "uname -a" it tells me I'm still using my old kernel. Can anyone tell me what I've done wrong?

Last edited by hashbangbinbash; 09-09-2008 at 05:08 AM.
 
Old 09-09-2008, 05:09 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Did you remember to run
Code:
lilo
after editing lilo.conf?
 
Old 09-09-2008, 05:40 AM   #3
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 108

Original Poster
Rep: Reputation: 16
Yup. I ran that and then restarted, wasn't sure I had to do both but did anyway to make sure.
 
Old 09-09-2008, 06:38 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
I made a symbolic link in /boot for System.map-2.6.24.5-xxxx-std-ipv6-32 called System.map
You can delete the symlink since you use extra version and comment the line "map=/boot/System.map"
Then run lilo verbosely to see what it does:
Code:
/sbin/lilo -v

Last edited by bathory; 09-09-2008 at 03:17 PM.
 
Old 09-09-2008, 07:50 AM   #5
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 108

Original Poster
Rep: Reputation: 16
According to the output, it all went swimmingly...

Quote:
# /sbin/lilo -v
LILO version 22.8, Copyright (C) 1992-1998 Werner Almesberger
Development beyond version 21 Copyright (C) 1999-2006 John Coffman
Released 19-Feb-2007 and compiled at 20:03:07 on Jun 12 2008

Reading boot sector from /dev/hda
Using MENU secondary loader
Calling map_insert_data

Boot image: /boot/bzImage-2.6.24.5-xxxx-std-ipv6-32
Added linux *

Boot image: /boot/bzImage-2.6.24.5-xxxx-grs-ipv4-32
Added linux-old

Writing boot sector.
/boot/boot.0300 exists - no boot sector backup copy made.
and yet uname -a still shows the old kernel.
 
Old 09-09-2008, 05:07 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Well, since lilo.conf looks ok, I can only think that who compiled that kernel has forgotten to change the extraversion from .5-xxxx-grs-ipv4-32 to .5-xxxx-std-ipv6-32. You can use strings to check the kernel version:
Code:
strings /boot/bzImage-2.6.24.5-xxxx-std-ipv6-32|grep 2.6.24.5
if you don't have the sources.
 
Old 09-10-2008, 03:39 AM   #7
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 108

Original Poster
Rep: Reputation: 16
thanks bathory.

Code:
# strings /boot/bzImage-2.6.24.5-xxxx-std-ipv6-32 | grep 2.6.24.5
2.6.24.5-xxxx-std-ipv6-32

Last edited by hashbangbinbash; 09-10-2008 at 03:42 AM.
 
Old 09-10-2008, 03:52 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Doh!!
Change lilo.conf to the bare essentials:
Code:
prompt
timeout=50
lba32

image=/boot/bzImage-2.6.24.5-xxxx-std-ipv6-32
label=linux
read-only
root=/dev/hda1

image=/boot/bzImage-2.6.24.5-xxxx-grs-ipv4-32
label=linux-old
read-only
root=/dev/hda1
and try again
 
  


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
changing the kernel name jonhewer Linux - Kernel 2 05-06-2007 10:47 PM
changing kernel Kendo1979 Linux - Newbie 2 04-27-2005 02:53 AM
changing the kernel albean Linux - Newbie 1 11-04-2004 11:44 AM
changing kernel source transeunt Linux - Newbie 2 12-10-2003 07:07 PM
Changing Kernel on the fly NSKL Linux - General 1 06-07-2002 05:28 PM

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

All times are GMT -5. The time now is 01:12 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