LinuxQuestions.org
Register a domain and help support LQ
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, 06:06 AM   #1
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 106

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 06:08 AM.
 
Old 09-09-2008, 06:09 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

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

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, 07:38 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
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 04:17 PM.
 
Old 09-09-2008, 08:50 AM   #5
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 106

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, 06:07 PM   #6
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
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, 04:39 AM   #7
hashbangbinbash
Member
 
Registered: Mar 2008
Posts: 106

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 04:42 AM.
 
Old 09-10-2008, 04:52 AM   #8
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,516

Rep: Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501Reputation: 1501
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


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


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