kanotix.com

General Support - How do I make my modules survive a reboot?

gtpeacock - 17.07.2006, 03:08 Uhr
Titel: How do I make my modules survive a reboot?
After a recent dist-upgrade, I now get an error during boot that hotplug does not recognize my mouse, and I also get a failure of eth0. Both are resolved if I modprobe psmouse and rt2500 (then ifup eth0), but I have not been able to figure out how to make these two survive a reboot. What is the correct method to update the modules to load at boot?
shame - 17.07.2006, 03:12 Uhr
Titel:
I'm not sure if there is a definitive way of doing it it but I personally add any modules to /etc/modules
gtpeacock - 21.07.2006, 02:45 Uhr
Titel:
When I add the two modules to /etc/modules and reboot, I get the same result. If I edit /etc/modules again, my changes are not there. Something is writing over /etc/modules (every boot?) and the new additions are not retained. What would do this and how do I turn it off?
eco2geek - 21.07.2006, 04:04 Uhr
Titel:
Try adding them to "/etc/modules-2.6" instead. I think "/etc/modules" is no longer used.
kelmo - 21.07.2006, 05:57 Uhr
Titel:
From module-init-tools init script:

Code:

KVER=$(uname -r)
KMAJ=${KVER%${KVER#*.*[^.]}}
KMAJ=${KMAJ%.}

if [ -e /etc/modules-$KVER ]; then
  MODULES_FILE=/etc/modules-$KVER
elif [ -e /etc/modules-$KMAJ ]; then
  MODULES_FILE=/etc/modules-$KMAJ
else
  MODULES_FILE=/etc/modules
fi


You can see what files are accepted and in what order.
HK-47 - 21.07.2006, 06:24 Uhr
Titel:
maybe you can try putting the text files into the /etc/modprobe.d folder
slam - 21.07.2006, 07:38 Uhr
Titel:
Zitat:
You can see what files are accepted and in what order.

So, simply remove all files /etc/modules-* (they are not needed any more) and just leave /etc/modules. After that add your module into that file and it will be activated with every boot.
Greetings,
Chris
gtpeacock - 23.07.2006, 01:22 Uhr
Titel:
Thanks for the help. I did find another file named after the kernel that was overwriting etc/modules on each boot. When I editted that file, the changes stayed. It took a bunch of rebooting to read the message as it whizzed by while booting. How do I capture all that text and save it to read it at a more human pace?
slam - 23.07.2006, 12:16 Uhr
Titel:
Simply:
Code:
dmesg > bootmessages.txt

That puts them all in a handy text file.
Greetings,
Chris
Alle Zeiten sind GMT + 1 Stunde
PNphpBB2 © 2003-2007