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
 
Search this Thread
Old 10-23-2003, 02:28 PM   #1
ralpha6
Member
 
Registered: Aug 2002
Posts: 40

Rep: Reputation: 15
New install of slack 9.1: modprobe can't load any modules.


I just installed Slack 9.1. After reboot, and before login, modpobe trys to load some modules but can't find the modules.dep file.

I'm relatively new to linux, having installed Mandrake 9.1 and Redhat 9 with neither of them really to my liking. I want to learn more about linux and have been told/read that Slack will give me a better understanding of the power of Linux.

So far, I haven't added any users yet. I logged in as root and ran xf86config setup file and can't startx because no modules are being loaded, so my usb mouse causes X to fail.

Am I missing something during the installation process? I've read and re read the book on Slackware's site and can't see anything I'm missing.

lsmod shows no modules at all loaded. And if I type in modprobe, I get the same error that happens during bootup. (Can't load moudle xxx. modules.dep doesn't exist)

Any help for this newbie is much appreciated.
 
Old 10-23-2003, 02:37 PM   #2
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Re: New install of slack 9.1: modprobe can't load any modules.

Quote:
Originally posted by ralpha6
lsmod shows no modules at all loaded. And if I type in modprobe, I get the same error that happens during bootup. (Can't load moudle xxx. modules.dep doesn't exist)

Any help for this newbie is much appreciated.
modules.dep is supposed to live in /lib/modules/`uname -r` (unless slack does it differently, I have no experience with Slackware). Check if it's there, and if it's not, run

Code:
  depmod -ae
That should create the file.

Of course, this is assuming your kernel is built with loadable modules support in the first place .
 
Old 10-23-2003, 02:41 PM   #3
ralpha6
Member
 
Registered: Aug 2002
Posts: 40

Original Poster
Rep: Reputation: 15
Re: Re: New install of slack 9.1: modprobe can't load any modules.

Quote:
Originally posted by robartes

Of course, this is assuming your kernel is built with loadable modules support in the first place . [/B]
Thanks for the reply robates!

Ok so my next question:

Do I need to compile the default kernel that was used to install Slack to include support for loadable modules or is that included in the default kernel?

Edit: modules.dep is in fact in /lib/modules/`2.4.22

Last edited by ralpha6; 10-23-2003 at 02:46 PM.
 
Old 10-23-2003, 02:50 PM   #4
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Re: Re: Re: New install of slack 9.1: modprobe can't load any modules.

Quote:
Originally posted by ralpha6
Do I need to compile the default kernel that was used to install Slack to include support for loadable modules or is that included in the default kernel?
As I've said - I have never seen a Slack system up close, so I have no idea whether or not it includes module support by default.

You can check the existence of the directory I mentioned before (/lib/modules/`uname -r` - those are backticks BTW, uname -r gives you your kernel version, so this is really /lib/modules/your_kernel_version).

Also, check for the existence of /proc/modules. If both this and the directory I mentioned above exist, chances are your kernel supports modules.

Did the depmod -ae do anything?
 
Old 10-23-2003, 02:55 PM   #5
ralpha6
Member
 
Registered: Aug 2002
Posts: 40

Original Poster
Rep: Reputation: 15
I didn't type depmod -ae yet, as I'd have to reboot to Slack. (I'm using Redhat at the moment)

/lib/modules/2.4.22/modules.dep is there.
I'll have to reboot to check for /proc/modules.
 
Old 10-23-2003, 03:02 PM   #6
ralpha6
Member
 
Registered: Aug 2002
Posts: 40

Original Poster
Rep: Reputation: 15
depmod -ae returned:

depmod: Can't open /lib/modules/2.4.20-8/modules.dep for writing

So now I see sort of the problem. uname -r returns 2.4.20-8 and /lib/modules/ only has 2.4.22 in it. So I have the wrong kernel for the modules that I have. Any idea how to fix this?
 
Old 10-23-2003, 03:23 PM   #7
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by ralpha6
depmod -ae returned:

depmod: Can't open /lib/modules/2.4.20-8/modules.dep for writing

So now I see sort of the problem. uname -r returns 2.4.20-8 and /lib/modules/ only has 2.4.22 in it. So I have the wrong kernel for the modules that I have. Any idea how to fix this?
The obvious really: install the correct kernel, or the correct modules . The slackware docs should help you with that.

Or, if you compiled the kernel yourself, do a make modules_install in your kernel source dir, I keep forgetting that myself as well
 
Old 10-23-2003, 03:33 PM   #8
ralpha6
Member
 
Registered: Aug 2002
Posts: 40

Original Poster
Rep: Reputation: 15
I didn't compile my kernel. This is a brand new install on a freshly formatted HD. Guess I need to go figure out how to get the right kernel image copied over to my /boot/vmlinuz.

Thanks for the help.
 
Old 10-23-2003, 03:47 PM   #9
ralpha6
Member
 
Registered: Aug 2002
Posts: 40

Original Poster
Rep: Reputation: 15
Am I missing something here:

/boot contains vmlinuz-ide-2.4.22
No where does it mention 2.4.20-8

How come uname -r comes up with 2.4.20-8
 
Old 10-23-2003, 03:55 PM   #10
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by ralpha6
Am I missing something here:

/boot contains vmlinuz-ide-2.4.22
No where does it mention 2.4.20-8

How come uname -r comes up with 2.4.20-8
There is a kernel running with that version (do cat /proc/version to make sure). The /boot/vmlinuz-ide-2.4.22 is not the kernel running. There must be another one lurkin around in there.
 
Old 10-23-2003, 04:04 PM   #11
ralpha6
Member
 
Registered: Aug 2002
Posts: 40

Original Poster
Rep: Reputation: 15
cat /proc/version shows that 2.4.20-8 is running.

How do I change that to 2.4.22?
 
Old 10-23-2003, 04:09 PM   #12
robartes
Member
 
Registered: Oct 2003
Location: Mechelen, BE
Distribution: Mandrake as base, most software hand rolled
Posts: 80

Rep: Reputation: 15
Quote:
Originally posted by ralpha6
cat /proc/version shows that 2.4.20-8 is running.

How do I change that to 2.4.22?
You can't. That's the kernel speaking to you. You *are* running a 2.4.20-8 kernel.

You could try booting the 2.4.22 kernel (is that a Red Hat kernel or a Slack kernel?) for your Slackware by modifying your bootloader config.
 
Old 10-23-2003, 04:16 PM   #13
ralpha6
Member
 
Registered: Aug 2002
Posts: 40

Original Poster
Rep: Reputation: 15
Ok I think I see the problem.
2.4.20-8 is my redhat kernel

from lilo.conf:

boot=/dev/hdb #Redhat

image =/boot/vmlinuz
label="Slack"
root=/dev/hdd1
vga=normal
read-only

can I just change image=/boot/vmlinuz to image=/dev/hdd1/boot/vmlinuz?
 
Old 10-23-2003, 04:20 PM   #14
frandalla
Member
 
Registered: Oct 2003
Location: Tokyo - Japan
Distribution: Slackware
Posts: 348
Blog Entries: 1

Rep: Reputation: 37
Really strange, I installed Slack 9.1 without a problem. Indeed, the kernel used by Slack 9.1 is 2.4.22. As I see that you didn't do much. I suggest you to try a new fresh install. I think your bootloader is loading the kernel from some old linux install install, did your mandrake or red hat installations created a /boot partition? maybe (somehow) your lilo is loading that kernel and mounting your slack / partition.... I'm just guessing...
 
Old 10-23-2003, 04:22 PM   #15
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
No, no - don't reinstall. Just change lilo.conf to

image=/boot/vmlinuz-ide-2.4.22

Or make a symlink 'vmlinuz' pointing to 2.4.22.
 
  


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
modprobe: FATAL: Could not load /lib/modules/.../modules.dep Ankardo Debian 9 02-01-2011 06:09 PM
Slack+kernel2.6.4 modules don't load ? how to start integrated kernel driver? elfenoir Slackware - Installation 1 03-23-2004 04:07 AM
Help, Cant use modprobe to load modules to run isis! apeacez Linux - Software 0 01-15-2004 08:19 AM
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 02: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 02:40 AM


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

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration