LinuxQuestions.org
Visit Jeremy's Blog.
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
 
LinkBack Search this Thread
Old 12-07-2008, 06:26 PM   #1
stevenmnance
Member
 
Registered: Oct 2008
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
"(EE) NVIDIA (0): failed to load the NVIDIA kernel module"


So my slackware box was running perfectly fine until I just tried to boot it up. I recently bought a new house and after plugging it in at the new house and booting up I get this error when I try to start x...what did I do?

Fatal: Could not load /lib/modules/2.6.21.5-smp/modules.dep : No such file or directory
(EE) NVIDIA(0): Failed to load the NVIDIA kernel module!
(EE) NVIDIA(0): *** Aborting ***
(EE) Screen(s) found, but none have a usable configuration
Fatal Server error:
No screens found
giving up

xinit: Connection reset by peer(errno104): unable to connect to X server
xinit: no such process (errno3): server error


Did something happen to my box in the move or was this something I did previous to moving it? and if it is what did I do? lol I have windows vista dual booted on here just as a back up because my laptop is still at the other house and vista is running fine...

Last edited by stevenmnance; 12-07-2008 at 06:28 PM.
 
Old 12-07-2008, 06:38 PM   #2
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 12.2 (2.6.27.59), 13.1 (2.6.33.15)
Posts: 2,576

Rep: Reputation: 275Reputation: 275Reputation: 275
Quote:
Did something happen to my box in the move or was this something I did previous to moving it?
Probably the latter.

As root, try running depmod -a.

Quote:
and if it is what did I do?
Good question! I don't know, I wasn't a fly on the wall in your house to watch you. Were you playing around with compiling a new kernel? Or installing a new version of the nvidia kernel module and driver?
 
Old 12-08-2008, 12:54 AM   #3
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Posts: 11,388
Blog Entries: 2

Rep: Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825Reputation: 825
I'm guessing here, but did you compile or install a new kernel without recompiling the nvidia driver ? This would likely result in what you posted.
 
Old 12-08-2008, 01:07 AM   #4
stevenmnance
Member
 
Registered: Oct 2008
Distribution: Slackware
Posts: 44

Original Poster
Rep: Reputation: 15
So I haven't messed with my kernel at all other then once when I changed it to get my usb drivers working. And everything was running fine up until I tried to boot it up today. When I ran depmod I got:

Fatal: Could not load /lib/modules/2.6.21.5-smp/modules.dep : No such file or directory

Whats missing? This is over my head
 
Old 12-08-2008, 01:13 AM   #5
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 12.2 (2.6.27.59), 13.1 (2.6.33.15)
Posts: 2,576

Rep: Reputation: 275Reputation: 275Reputation: 275
At a command line type:

uname -r

Then look in /lib/modules to verify you have a directory of the same name.

Based upon your error message, uname -r should show:

2.6.21.5-smp

You should have a directory named /lib/modules/2.6.21.5-smp.

Just to make sure, you have to run depmod -a as root.
 
Old 12-08-2008, 01:21 AM   #6
astrogeek
Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.0, 13.1, 13.37, 64
Posts: 475

Rep: Reputation: 88
Another guess...

Maybe your box got a bump in the move that dinged the head into the disk where that file is located?

In any event, what is the output of
Code:
cat /etc/fstab
I am wondering if you have more than one drive that has to be mounted, maybe disconnected - though that makse little sense because it boots...

So next, what is the output of
Code:
ls -l /lib/modules/2.6.21.5-smp/
That will tell us if the file is there or not and maybe a few other things...

Last edited by astrogeek; 12-08-2008 at 01:22 AM.
 
Old 12-08-2008, 01:59 AM   #7
stevenmnance
Member
 
Registered: Oct 2008
Distribution: Slackware
Posts: 44

Original Poster
Rep: Reputation: 15
So I think I figured out what the problem is, the NVIDIA driver is looking for version 2.6.21.5 and the one located in /lib/modules/ is 2.6.24.5...

and depmod comes back looking for .21 and not finding it. How do I tell everything I'm using a different version? Or is there something else I need to do?
 
Old 12-08-2008, 02:10 AM   #8
astrogeek
Member
 
Registered: Oct 2008
Distribution: Slackware: 12.1, 13.0, 13.1, 13.37, 64
Posts: 475

Rep: Reputation: 88
Quote:
Originally Posted by stevenmnance View Post
So I think I figured out what the problem is, the NVIDIA driver is looking for version 2.6.21.5 and the one located in /lib/modules/ is 2.6.24.5...
What does
Code:
uname -r
...show, as Woodsman asked?

The /lib/modules/2.6.24.5... is not just the 'driver' version so much as it is the kernel version, so what kernel are you actually using? If you are runnig 2.6.24.5 (Slackware 12.1) then we need to ask why it is trying to load modules for a different kernel...
 
Old 12-08-2008, 02:27 AM   #9
stevenmnance
Member
 
Registered: Oct 2008
Distribution: Slackware
Posts: 44

Original Poster
Rep: Reputation: 15
uname -r brings back 2.6.21.5-smp

Last edited by stevenmnance; 12-09-2008 at 11:30 PM.
 
Old 12-08-2008, 10:02 AM   #10
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,185

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
Seems that you have updated your kernel modules to 2.6.24.5, but the kernel is still 2.6.21.5 for which the nVidia driver was compiled.

What version of glibc do you have installed?

You can upgrade to the 2.6.24.5 kernel and kernel headers, then recompile the nVidia driver to suit, if you have the appropriate glibc installed. (Note that glibc changed between 2.6.21.5 and 2.6.24.5(glibc-2.7)).

Otherwise it may be better to uninstall the 2.6.24.5 kernel modules and reinstall the 2.6.21.5 kernel modules.

Last edited by allend; 12-08-2008 at 10:12 AM.
 
Old 12-08-2008, 11:29 AM   #11
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-13.37
Posts: 1,955

Rep: Reputation: 326Reputation: 326Reputation: 326Reputation: 326
The easiest solution would be to just reinstall the nVidia drivers. However, if `uname -a` really returns just 2.6.21.5 with no mention of SMP, then the nVidia kernel module may not compile (the Slackware kernel sources are configured for the -smp kernels. You should probably be running an -smp kernel anyway unless your hardware is really old or strange, but if you insist on running a non-SMP kernel you would have to follow the instructions from README.TXT here for Slackware 12.1 or here for 12.0 to patch the sources for the non-SMP kernels to allow you to build the nVidia kernel module). What version of Slackware are you running, by the way? Clearly you had 12.0 installed at some point. Did you upgrade to 12.1 or are you still running 12.0?

Regardless, you will have to rebuild the nVidia drivers. Please don't try to upgrade your kernel headers/glibc as allend suggested -- although in theory this could work, you should really only upgrade your glibc/kernel headers when you are upgrading the entire system (unless you know what you're doing).
 
Old 12-08-2008, 12:03 PM   #12
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 12.2 (2.6.27.59), 13.1 (2.6.33.15)
Posts: 2,576

Rep: Reputation: 275Reputation: 275Reputation: 275
Do you have the 2.6.24.5 kernel installed? Look in /boot.

If you have 2.6.24.5 kernel modules installed then you likely installed the 2.6.24.5 kernel too. But you might have forgotten to update the boot loader menu option to point to the newer kernel. Therefore your boot loader loads the 2.6.21.5 kernel.

Get the kernel/modules issue resolved, then reinstall the nvidia module and drivers. The slackbuild.org build script works fine. I just updated from 177.80 to 177.82 yesterday using those scripts.

As a interim move, consider also installing the stock nv driver. Then maintain two xorg.cong files. When you have problems with nvidia, you can quickly copy xorg.conf.nv to xorg.conf and have a way into X and use your graphical browser. Look here for a mini-mini-howto.
 
Old 12-08-2008, 07:29 PM   #13
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 2,185

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
I did not suggest a glibc upgrade. I want to find out the status of this system. Is it a 12.0 install that has had some 12.1 packages installed, or is it a 12.1 system that has had some 12.0 packages installed?

What is the output of 'ls /var/log/packages | grep glibc' and 'ls /var/log/packages | grep kernel'?

Knowing this is required so that the system is either reverted to 12.0 or correctly upgraded to 12.1.
 
Old 12-09-2008, 10:24 PM   #14
stevenmnance
Member
 
Registered: Oct 2008
Distribution: Slackware
Posts: 44

Original Poster
Rep: Reputation: 15
Hey sorry about the slow reply, I just sat back down at the computer, moving sucks lol. But before I do anything its a 12.1 install and the only change to the kernel that I made was what ever the script below does:

Quote:
Originally Posted by T3slider View Post
If you're using the huge-smp kernel, switch to the generic-smp kernel (this requires creating an initrd -- see /boot/README.initrd for more information. You could also use Alien Bob's script, which tries to guess the correct mkinitrd command for your system). I *think* these drivers would be compiled as modules in the generic-smp kernel (but I'm not at my Linux box so I can't check), so you could unload the module with `modprobe -r modulename` and load it with `modprobe modulename`.
Also its 2.6.21.5-smp I didnt think about it, im having to turn off this box and switch to linux then power back down and switch to windows.
 
Old 12-09-2008, 10:32 PM   #15
stevenmnance
Member
 
Registered: Oct 2008
Distribution: Slackware
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Woodsman View Post
Do you have the 2.6.24.5 kernel installed? Look in /boot.
It looks like I only have 2.5.21.5 installed, how do I go about re-installing 2.6.24.5? (that's what comes standard with 12.1 right?)
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
(EE) Failed to load module "nvidia" (module does not exist, 0) sanitynotvanity Slackware 6 12-11-2011 12:04 PM
no display: Xorg, Nvidia driver broken after Etch update; Failed to load module "glx" forgox Debian 19 07-12-2010 12:26 PM
Failed to load module "ati" (module does not exist, after upgrad from Redhat 3 to 5. perrym8 Red Hat 2 07-24-2007 10:14 AM
Failed to Load Kernel Module "i915" alkos333 Slackware 3 01-13-2007 09:08 PM
"Failed to load module "i915"" Kane635 Linux - Software 0 11-22-2004 08:17 PM


All times are GMT -5. The time now is 03:16 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
Open Source Consulting | Domain Registration