LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 09-01-2003, 07:24 PM   #1
blanny
Member
 
Registered: Dec 2002
Location: CA,USA
Distribution: RHCE in training :)
Posts: 57

Rep: Reputation: 15
modprobe cant find modules but they are in /lib/modules/'uname


What is going on here? I don't even think I did anything out of the ordinary. Does this have something to do with my modutils? I can't get any modules to load on any kernel now but they are ALL still there. :/

-blan
 
Old 09-01-2003, 07:27 PM   #2
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
What did you command and what resulted?

How to get good answers with your questions about Linux
 
Old 09-01-2003, 07:31 PM   #3
blanny
Member
 
Registered: Dec 2002
Location: CA,USA
Distribution: RHCE in training :)
Posts: 57

Original Poster
Rep: Reputation: 15
I did apt-get install kernel#2.4.20-20.9. Thats all I can think of that I did. Now I can't load anything on 2.4.20-20.9 or any of the other kernels I have installed.

modprobe ide-scsi -------> can't find module....wtf
ls -l /lib/modules/kernel/drivers/scsi/ide-scsi and its there.
 
Old 09-01-2003, 07:45 PM   #4
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
You may need kernel-source as well and create the link /usr/src/linux that points to it. That's usually the source of that error.

After installing a new kernel, you will need the kernel-source to rebuild your proprietary modules.

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password: 
[root@tinwhistle root]# uname -r
2.4.18-3
I am running kernel version 2.4.18-3. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.18-3 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.18-3
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.
 
Old 09-01-2003, 07:49 PM   #5
blanny
Member
 
Registered: Dec 2002
Location: CA,USA
Distribution: RHCE in training :)
Posts: 57

Original Poster
Rep: Reputation: 15
I have the source for all kernels installed on my system and a symbolic link from /usr/src/linux -> 2.4.20-20.9. I dont think this is the problem though. Aren't modules stored in /lib/modules?
 
Old 09-01-2003, 07:51 PM   #6
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
What kernel are you actually running?

# Find running kernel version
uname -r
 
Old 09-01-2003, 08:07 PM   #7
blanny
Member
 
Registered: Dec 2002
Location: CA,USA
Distribution: RHCE in training :)
Posts: 57

Original Poster
Rep: Reputation: 15
2.4.20-20.9. This is killing me because none of my eth modules will load so i have to go into the other room to post.
 
Old 09-01-2003, 08:25 PM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
another kernel thread

Anything sound familiar?
 
Old 09-01-2003, 08:49 PM   #9
blanny
Member
 
Registered: Dec 2002
Location: CA,USA
Distribution: RHCE in training :)
Posts: 57

Original Poster
Rep: Reputation: 15
nah, i got modversions.h for 2.4.20-20.9. What else is involved in the modprobe process?
 
Old 09-01-2003, 08:57 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
It is a similar problem, don't just scan the topic.

modprobe locates the module and loads it into the running kernel.

Linux Loadable Kernel Module HOWTO

Last edited by fancypiper; 09-01-2003 at 09:06 PM.
 
Old 09-01-2003, 09:04 PM   #11
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Perhaps it's time for Compiling A Kernel From Source.
 
Old 09-01-2003, 09:07 PM   #12
blanny
Member
 
Registered: Dec 2002
Location: CA,USA
Distribution: RHCE in training :)
Posts: 57

Original Poster
Rep: Reputation: 15
I dont need a custom kernel. It has worked fine on 4 other kernel versions and now it wont work on any. I just need to figure out why it wont see any modules.
It wont even work if i do modprobe ./nvidia.o
 
Old 09-01-2003, 09:12 PM   #13
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
As I stated before, after installing a new kernel, you will need to install kernel-source as well to match the new kernel so that you can reinstall your proprietary modules (video drivers such as nVidia, winmodem drivers, etc) and alsa drivers if you use them. A new kernel breaks these.

Last edited by fancypiper; 09-01-2003 at 09:13 PM.
 
Old 09-01-2003, 09:33 PM   #14
blanny
Member
 
Registered: Dec 2002
Location: CA,USA
Distribution: RHCE in training :)
Posts: 57

Original Poster
Rep: Reputation: 15
fancypiper- thank you for trying to answer my question, but I dont think you are listening to me. I read the other thread completely and I don't think you were paying attention to the other guy either. My problem is this. I cannot load any modules under any kernel. I used to be able to do this. I have kernel source for every one of the kernel images on my system. I have modules that are compiled for every kernel image. I dont' need a new kernel, I don't need to recompile, I dont need to install modules or kernel source. I need to figure out why modprobe wont see anything. This just happened suddenly and I don't know what caused it. I guess this question is unaswerable so I will jsut backup my data and install gentoo since I was feeling like doing that anyway. Thanks for trying man.

-blan
 
Old 09-01-2003, 10:02 PM   #15
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Sorry I couldn't help. There were 2 different folks in that thread and it was somewhat confusing to me as well, but I think both got straightend out, despite my help.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
modprobe: FATAL: Could not load /lib/modules/.../modules.dep Ankardo Debian 9 02-01-2011 05:09 PM
Update-modules: No longer managing /lib/modules/modprobe.conf? geekzen Debian 0 04-03-2004 06:49 PM
Slack9 - no PPP (can't open dependencies file /lib/modules/2.4.18/modules.dep) bluehz Slackware 1 05-04-2003 02:32 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 01:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 01:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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