> db wrote:
>
> >>Try "depmod -a"
> >>
> >
> > When I tried "depmod -a"  it returned:
> > "can't open /lib/modules/2.0.34/modules.dep"
> >
> > I CDed along the string and found two things:
> >
> > 1) The original string quoted in the error:
> > "lib/modules/preferred/module.dep" is incorrect.  In the modules
directory
> > there is no preferred dirctory... only one directory: "2.0.34-0.6".
>
> Interesting.  The kernel was built as 2.0.34, but the modules were
> stuffed in a directory for 2.0.34-0.6.  Ewwww!  Somebody goofed!  Can
> you do a "uname -r" and see what it says?  I'll bet it'll say "2.0.34".
> If that's true, then try this as the root user:
>
> cd /lib/modules
> ln -s 2.0.34-0.6 2.0.34
>
> Then try the "depmod -a" again.  I won't guarantee this works, but it's
> worth the effort.

Rick,

You were right.  uname -r returned  "2.0.34".  From what you said, I just
realized someone warned me of something like this when I was planning to
install 5.1.  What he said about it was"

">As I recall from RH5.1, there were a number of problems because RH was
>moving things from one directory to another.  They are more or less
>completely fixed in 5.2 and are curable in 5.1 with the ln -s instruction."

so I did the "ln -s 2.0.34-0.6 2.0.34" and the "depmod -a" and it returned
nothing at the resulting prompt.

I rebooted however and the same "Finding module dependencies ... Can't find
lib/modules/preferred/module.dep showed up in the boot process...

So I guess nothing changed.  Or did it?  I am so new at linux I'm pretty
much in the dark.

On another list. ABrady kindly dug up a some referenced to this problem ...
three different ones.

1.  -----------------------------

THIS FIRST ONE, MIGHT HAVE CONTRIBUTED TO THE PROBLEM ....  I DO HAVE LILO
BUT IT IS ON THE PRIMARY DRIVE AND ONLY BOOTS WINDOWS AND MANDRAKE 8.1.   I
BOOT RH 5.1 WITH A FLOPPY.  THIS MIGHT BE THE CAUSE BUT I AM NOT SURE WHY
.... ?

IN REFERENCE TO THE MENTIONED FTP DISK IMAGES ... I DON'T BELIEVE THERE ARE
ANY  AVAILABLE ANY LONGER JUST FILES AND I HAD DIFICULTY BURNING A CD AND
WITH AN FTP INSTALL SO  I DUG  UP AN INSTALL CD AND USED THAT..

NOT SURE HOW I WOULD FIND THE UPDATES MENTIONED....

Over the past week, I have been experienced a number of problems  (can`t
open /lib/modules/prefered/modules.dep)  installing Redhat 5.1, and managed
a perfect install this morning.

I have had exactly the same problems as you.  You should do the
following.

1. Make sure that you installed LILO somewhere, even if it was on
your Linux partition rather than your MBR.  If this is not done, the
kernel is not compiled with all of your modules during installation.

2. Check all of the updates in /redhat/redhat-5.1/updates at your
local FTP mirror.  There are some new disc images there, so you
should perhaps use those.

3. In particular, get linuxconf and kernelconf, upgrading with -
$ rpm -Uvh <modulename>

4. Now reboot


2  -------------------------------------

I TAKE IT THIS IS ONE OF THE UPDATES MENTIONED ABOVE.  HOW WOULD I GO ABOUT
FINDING IT AND INSTALLING IT OR THE "2.0.34-1
versions of kernel, kernel-headers, kernel-source etc ?

"The initscripts-3.65-2 update is the package that solved
this problem for me. It might help to get the final 2.0.34
kernel packages as well (e.g. the 2.0.34-1 versions of
kernel, kernel-headers, kernel-source etc.)

Incidentally, RedHat support are of the opinion that the
solution to this problem is obvious if you read their
errata. I guess we must be stupid not to have spotted it."


This is what I did to solve the problem related to the boot-up message:
"Cannot open /lib/modules/preferred/modules.dep" This problem appears to
occur mainly when loadlin is used.

3    ----------------------------

THIS SEEMS TO REDIRECT THE ERRONEOUS PROCESS BUT I DON'T SEE HOW IT SUPPLIES
THE MODULE.DEP ....OR AM I MISUNDERSTANDING?

Type uname -r This will give you the version number
Have a look in the directory /lib/modules There should be a directory with a
name resembling the version number you found above, but often with something
on the end (-0.6 in my case). This is your modules directory.
Make a symbolic link to the modules directory with the exact same name as
the version number. i.e. ln -s <modules directory> <version number>
Now change into the directory where the modules are via the symbolic link.
/lib/modules/<version number>
Run the command depmod -a
Edit the file /etc/conf.modules using your favourite text editor. I use pico
Add the line depfile=/lib/modules/<version number>/modules.dep
Save and quit
Edit the file /etc/rc.d/rc.sysinit
Find the line with the command depmod -a preferred You can use the ctrl+W
command in pico for this.
A few lines below the first occurence of this command should be an identical
one. There is the first depmod command, an else statement, then the second
depmod command.
Remove the word preferred from the second depmod statement. It should now
read depmod -a
Save the file
Reboot and hope for the best!

CAN ANYONE MAKE MORE SENSE OUT OF THIS THAN I AM?  I am pretty new to this
and don't grasp all the involved principles, commands etc.
I do very much appreciate all the help!





Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to