View previous topic :: View next topic |
Author |
Message |
griffenjam n00b
Joined: 01 Jan 2004 Posts: 43
|
Posted: Thu Oct 28, 2004 4:51 am Post subject: Hang while Calculating module dependencies |
|
|
Everytime I reboot my system hangs while Calculating module dependencies.
It also does this every time I try to install the nVidia drivers. IT will sit there with the HD light blinking for about half an hour before continueing on like nothing. What is the problem? It didn't this with the 2.4 kernel... |
|
Back to top |
|
|
hecatomb Guru
Joined: 02 Sep 2004 Posts: 525
|
Posted: Thu Oct 28, 2004 10:34 am Post subject: |
|
|
I looked through the code of '/etc/init.d/modules' but cannot find anything possible taking so much time.
Code: | ...
ebegin "Calculating module dependencies"
/sbin/modules-update &>/dev/null
... |
Then it tries to load the modules specified in your /etc/modules.autoload.d/kernel-2.6 file.
modules-update just combines the configs in /etc/modules.d/* into one config file(man modules-update)! Try to run this command by hand to see if this hangs so long.
The last lines of the shellscipt call the 'depmod' command.
man depmod wrote: |
depmod creates a list of module dependencies, by reading each module
under /lib/modules/version and determining what symbols it exports, and
what symbols it needs. By default this list is written to modules.dep
in the same directory. If filenames are given on the command line,
only those modules are examined (which is rarely useful, unless all
modules are listed). |
Have a look into your /etc/modules.autoload.d/* files to see if there are thousands of modules? Which may explain the long time. But I don't think that's the problem.
If this all does not help try to edit the /etc/init.d/modules script and set some debugging informations in to see where the problem occours. |
|
Back to top |
|
|
griffenjam n00b
Joined: 01 Jan 2004 Posts: 43
|
Posted: Fri Oct 29, 2004 7:04 pm Post subject: |
|
|
The problem lies in generate-modprobe.conf but I can't figure out how to sole it. Inside of the script there is a line that you can uncomment that shows that the script is doing at that moment. When I uncommented it it looked like the script was trying to do something with ide-scsi (which I don't have compiled in or selected as a module). How does this script work? Where does it pull a list of things that it needs to process? How can I just tell it to skip that one? |
|
Back to top |
|
|
hecatomb Guru
Joined: 02 Sep 2004 Posts: 525
|
Posted: Sat Oct 30, 2004 9:53 am Post subject: |
|
|
According to the comments in this script it converts the "old" modules.conf to the newer modprobe.conf for you.
Kernel 2.4 used modules.conf and kernel 2.6 now uses modprobe.conf!
I uses the old (for 2.4 kernels) /sbin/modprobe utility to read the old modules list.... it wants to convert it.
But I can't really imagine why this script is hanging so ugly long.
Have a look at your /etc/modules.conf and if exist /etc/modules.d/* and rename the files and test it.
Sorry that I can't give you and "easy-to-do" solution. But I think you are able to fix it! |
|
Back to top |
|
|
Rosjahh Apprentice
Joined: 16 Jan 2003 Posts: 182 Location: Below sealevel
|
Posted: Sat Oct 30, 2004 12:28 pm Post subject: |
|
|
I might be having a similar issue, although my system doesn't take as long to complete "Calculating module dependencies". It takes something like 2 to 3 minutes, so definitely longer than necessary. I haven't found a solution yet, but will post here if I find anything. |
|
Back to top |
|
|
|