LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-04-2003, 02:41 PM   #1
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Rep: Reputation: 15
Unhappy RH9 looking for wrong modules?


When starting up I get (among others)
ifup: Can't open dependencies file /lib/modules/2.4.21-99-default/modules.dep

(I'm running RH9 without any updates, modules 2.4.20-8)

Where is the info telling it to look for these modules?
 
Old 12-05-2003, 06:24 AM   #2
andredude
Member
 
Registered: Dec 2003
Location: Johannesburg, South Africa
Distribution: Mandrake
Posts: 48

Rep: Reputation: 15
I had the same thing yesterday after managing to mess up my kernel, it was trying to load modules for the previous installation of the kernel. This can be pretty nasty to fix, I had to recompile my kernel. The info telling it to look for these modules is located in your boot partition, in files that should be called System.map, initrd-2.4.20-8.img and vmlinuz-2.4.20-8.

The first thing you might want to do is check your boot partition to see if these files are there, the /boot directory is not necessarily where you are booting from, I had to mount mine by doing a 'mount /dev/hda1 /mnt/hda1'. Then look in the same folder in ./grub/grub.conf to see if it's actually loading the right files. The first entry in this file is the kernel that will boot by default (lilo works similiar but rh9 uses grub by default so I suppose that's what you are using). If there are no obvious problems, do a kernel recompile (see http://www.computing.net/howto/advan...ubup/grub.html for a step by step guide)

Another possibility is that it's just looking in the wrong dir for the modules, go to /lib/modules and see what subdirs there are. If you've never updated your redhat there should be only one, so create a simlink to try and fool it into using the modules that are there:

ln -s /lib/modules/2.4.20-8 /lib/modules/2.4.21-99-default

where the first argument is the directory that actually exists, so it will try to find /lib/modules/2.4.21-99-default/modules.dep in /lib/modules/2.4.20-8/modules.dep. I had to do this to get my @#%@ loopback modules to work while I recompiled.
 
Old 12-08-2003, 06:47 PM   #3
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Run /sbin/depmod -ae as root. Go to the modules dir for your running kernel to make sure that the modules.dep file was actually updated.
ls -l /lib/modules/$(uname -r)
 
Old 03-13-2004, 01:56 PM   #4
Recirqie
Member
 
Registered: Jun 2003
Distribution: RH 8.2, SuSE 9.0
Posts: 135

Original Poster
Rep: Reputation: 15
Sorry for the late reply, but trying to sort it out has had to be done in the small hours now and then. Something had certainly gone wrong in the installation, so I finally reinstalled it. Problem gone away, but no clue to the original cause.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrong modules directory used during boot ... tulear Linux - Software 3 10-30-2004 10:50 AM
modprobe looking for modules in the wrong place? Jaster150 Slackware 20 09-20-2004 09:59 PM
Self compiled modules have wrong version id ewschone Linux - General 1 06-20-2004 01:13 PM
ModProbe looking for wrong modules? DragonDon Linux - Newbie 5 03-27-2004 06:35 PM
How do I specify the loading order of the modules in RH9? raylpc Linux - General 5 09-20-2003 07:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 02:05 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