New install of slack 9.1: modprobe can't load any modules.
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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)
Distribution: Mandrake as base, most software hand rolled
Posts: 80
Rep:
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 .
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
Distribution: Mandrake as base, most software hand rolled
Posts: 80
Rep:
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.
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?
Distribution: Mandrake as base, most software hand rolled
Posts: 80
Rep:
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
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.
Distribution: Mandrake as base, most software hand rolled
Posts: 80
Rep:
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.
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.