Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 03-23-2005, 01:10 PM   #1
LQ Newbie
Registered: Jan 2005
Posts: 8

Rep: Reputation: 0
Kernel Reporting Wrong Version

I trying to upgrade my kernel in Gentoo from 2.6.7-r11 to the latest 2.6.11-r4.

The new kernel compiled fine and loads ok, however it reports as being 2.6.7 when gentoo starts and when I do a uname -r.

I am 100% certain that I compiled and installed the correct version and that it is just reporting wrong. I redid my symlink just to be sure.

I think it got screwed up when I was trying to import my settings from my old one.

Can I just change the name to the correct one in the make file or is there some other method I have to use to correct this?
Old 03-23-2005, 04:56 PM   #2
LQ Guru
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 254Reputation: 254Reputation: 254
Is it actually booting with the new kernel? Uname is usually pretty accurate on which kernel your running. If its reporting with uname and still states this at the login, I'm pretty sure its still booting with the old kernel.

Check your grub.conf and or lilo.conf and make sure everything is correct there to boot the right kernel.. check /etc/ and or the motd file..
Old 03-23-2005, 06:30 PM   #3
LQ Newbie
Registered: Jan 2005
Posts: 8

Original Poster
Rep: Reputation: 0
grub is set to boot the new kernel. I removed the entry for the old one. The motd lists the o
d one.

I did forget to mention one thing. When I compile drivers now the old kernel's source directory is used but I get a kernel mismatch when trying to load them. This leads me to believe the new kernel is running.
Old 03-23-2005, 11:21 PM   #4
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
I think you're still running the old kernel, and to be honest it seems unlikely that uname would be reporting a false value, If you are still using the old kernel's source directory, then it appears that what you're actually doing is recompiling the existing kernel with new config options.

What does /usr/src/linux point to? Based on your description, it sounds like it's still pointing to the old kernel source directory. If so, you just need to delete that existing symbolic link and redirect to point to /usr/src/linux-2.<new>.<version> -- J.W.
Old 03-24-2005, 04:32 AM   #5
Registered: Jan 2005
Location: Between the chair and the desk
Distribution: Debian Sarge, kernel 2.6.13
Posts: 666

Rep: Reputation: 30
Why don't you show us your grub's menu.lst file to clarify some things?
Old 03-24-2005, 06:01 AM   #6
Senior Member
Registered: Dec 2002
Location: Atlantic City, NJ
Distribution: Ubuntu & Arch
Posts: 3,503

Rep: Reputation: 57
Yeah I think J.W. got the answer. I would do this assuming your using gentoo-dev-sources:

cp /usr/src/linux-2.6.7-gentoo-r11/.config /usr/src/linux-2.6.11-gentoo-r4
rm /usr/src/linux
ln -sf /usr/src/linux-2.6.11-gentoo-r4 /usr/src/linux
cd /usr/src/linux
make clean
make && make modules_install
mount /boot
cp arch/i386/boot/bzImage /boot/gds-2.6.11-r4
Then add the gds-2.6.11-r4 line in your grub.conf
Old 03-24-2005, 08:41 AM   #7
LQ Newbie
Registered: Jan 2005
Posts: 8

Original Poster
Rep: Reputation: 0
Ok I'm not exactly sure what happened, but the problem is resolved.

I confirmed again that the link was corect, which it was. On a whim I did a make clean and then a make and now it reports fine. The old source directory must've been used at some point, though I still don't understand why.

I guess as long as it's working...

Thanks for all the replies.
Old 03-24-2005, 09:34 AM   #8
LQ Veteran
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 85
Cool - congrats on getting it working and thanks for posting back with the followup. -- J.W.


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
uname -r reports wrong kernel version branque Fedora 5 09-16-2005 10:26 AM
rpm -qa | grep kernel gives wrong kernel version markelo Red Hat 3 07-18-2004 09:35 AM
upgraded kernel but still wrong version John Newbie Debian 8 07-28-2003 04:50 PM
wrong kernel version? enrico Slackware 4 05-01-2003 12:05 AM
SuSE 80 YaST reporting wrong Version Steave Linux - Distributions 1 09-23-2002 11:47 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:43 PM.

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