LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-19-2005, 02:52 PM   #1
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Rep: Reputation: 92
uname -a gives wrong info


Have just upgraded my kernel to 2.6.10 and my box fired up faultelssly first time, but, as a check, I issued the command uname -a, and it tells me that I am still using 2.6.7. Now as I have physically moved my 2.6.7 kernel from where it normally resides, I canīt quite figure out why this is. I use grub as a bootloader, so no answers please telling me to re-run lilo.
So where does uname get itīs info from? is it from withing the kernel itself, or from within the /etc/motd file (which would explain it.

TIA
 
Old 01-19-2005, 02:55 PM   #2
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 33
Update Lilo....LOL j/k man

Yeah I think uname gets it's info from motd
 
Old 01-19-2005, 03:00 PM   #3
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Original Poster
Rep: Reputation: 92
Made me laugh anyway. As it happens, I have edited the motd, but still get 2.6.7 from uname
Anything more
 
Old 01-19-2005, 03:07 PM   #4
ProtoformX
Member
 
Registered: Feb 2004
Location: Canada
Distribution: LFS SVN
Posts: 334

Rep: Reputation: 33
It's a shot in the dark but go back to the kernel source tree and take a peek at the Makefile, it shows the version numbers in there, see if there set to 2.6.10.. lol that would be funny if they were not.

Question, in your /lib directory is there a 2.6.7 folder under modules? it could just be looking to see if that folder exists and if it does that's probly what it reports.

Other then that, I am stumped, sorry guy
 
Old 01-19-2005, 03:36 PM   #5
Phathead
Member
 
Registered: Sep 2003
Distribution: Slackware 10.1, Slamd64 10.1, IpCop 1.4
Posts: 125

Rep: Reputation: 15
If uname says 2.6.7, then you're running 2.6.7. Also check `uname -v` to see the compile time for the kernel you're running. I believe uname gets the kernel information from the kernel.

I do not use grub, but don't you have to update it somehow when you upgrade the kernel just like you do with lilo? Have you done that? Did you copy the new kernel to /boot? I know, it's the stupid things, but they're easy to forget.

Anyone using grub want to fill us in on how to update it to use the new kernel.
 
Old 01-19-2005, 04:37 PM   #6
mdarby
Member
 
Registered: Nov 2004
Location: Columbus, Ohio
Distribution: Slackware-Current / Debian
Posts: 795

Rep: Reputation: 30
Quote:
Originally posted by Phathead
If uname says 2.6.7, then you're running 2.6.7.
Not necessarily.

http://www.linuxquestions.org/questi...ighlight=uname

Last edited by mdarby; 01-19-2005 at 04:39 PM.
 
Old 01-19-2005, 07:42 PM   #7
Phathead
Member
 
Registered: Sep 2003
Distribution: Slackware 10.1, Slamd64 10.1, IpCop 1.4
Posts: 125

Rep: Reputation: 15
Quote:
Originally posted by mdarby
Not necessarily.

http://www.linuxquestions.org/questi...ighlight=uname
I don't see anything in that thread about uname being based on the motd file, just about the motd file being wrong in some cases. It appears that uname returns the correct kernel version number (i.e. the one you're running).

Back to my theory that the thread starter is not actually running 2.6.10.
 
Old 01-19-2005, 09:34 PM   #8
carboncopy
Senior Member
 
Registered: Jan 2003
Location: Malaysia
Distribution: Fedora Core, Slackware, Mac OS X, Debian, OpenSUSE
Posts: 1,210
Blog Entries: 4

Rep: Reputation: 45
I am having the same problem. Just that, I am running 2.6.10 but uname is telling me I am running 2.6.9.

Will dig up a few files to check.

EDIT:
Sorry, false alarm. my /usr/src/linux is actually linked to 2.6.9 instead of 2.6.10. So, I got 2.6.9 running.

Last edited by carboncopy; 01-19-2005 at 09:52 PM.
 
Old 01-20-2005, 10:26 AM   #9
vdemuth
Member
 
Registered: Oct 2003
Location: West Midlands, UK
Distribution: Slackware 14 (Server),Suse 13.1 (Desktop),, Mepis on the wifes lappy
Posts: 768

Original Poster
Rep: Reputation: 92
OK,
Beats self around head with large wooden club.

It turns out that during my compilation etc, during the cp bzImage stage that I copied my existing image, not my new one.

Have since corrected this, re-installed the Nvidia drivers, and hey presto, back to working again with the new Kernel.

Thanks to all for the suggestions though, pointed me in the right direction.
 
  


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
uname -r reports wrong kernel version branque Fedora 5 09-16-2005 10:26 AM
uname -a Does that show the actual kernel info? BajaNick Linux - General 2 01-11-2005 10:51 PM
uname info and what software to install csross Linux - General 5 10-07-2004 03:19 PM
Wrong info in the emails I send out leecming Linux - Newbie 3 07-04-2004 01:25 PM
uname -r is wrong!? eee Linux - Software 9 01-26-2002 09:54 PM


All times are GMT -5. The time now is 11:30 PM.

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