Re: Upon boot, many strange and useless modules are loaded
On Wed, Jul 30, 2003 at 10:46:23AM -0700, Mark Ferlatte wrote: > If you're using the default Debian kernel, it loads all of the modules > from the initrd, before it even mounts root. > > If you want to see what's going on, run: > > mount -oloop /initrd.img /mnt > > and look in /mnt. It's a cramfs, which is read-only. The loadmodules > script shows you all of the modules that are loaded on boot. > > If you want to change this stuff, you need to do this: > > mkdir /tmp/initrd > cp -a /mnt/* /tmp/initrd > edit scripts in /tmp/initrd as needed. > mkcramfs /tmp/initrd /boot/initrd.img-2.4.21-3-686-mine > Change the /initrd.img symlink to point to /boot/initrd.img-2.4.21-3-686-mine > Run lilo. > Reboot. > > I do this to force the loading of hardware RAID modules on boot, but you > can remove the IDE modules this way also. Looks good. Because I use self-compiled kernel from Debian source, I'd rather rekompile the kernel with only one IDE module. :-) Thanks Mody pgp0.pgp Description: PGP signature
Re: Upon boot, many strange and useless modules are loaded
On Wed, Jul 30, 2003 at 09:35:24AM -0400, Greg Folkert wrote: > That should have been /etc/modutils/aliases > > SORRY for the confusion I didn't notice that. :-) I know what file You mean. But it really doesn't help. :-( Mody pgp0.pgp Description: PGP signature
Re: Upon boot, many strange and useless modules are loaded
[EMAIL PROTECTED] said on Wed, Jul 30, 2003 at 12:15:19PM +0200: > On Tue, Jul 29, 2003 at 08:09:34PM -0400, Greg Folkert wrote: > > In /etc/modutil/aliases put in: > > <...> > > > If you don't need any of them... uncomment all of them. > > > > Then run "update-modules" > > Hmm, didn't help. :-( uncommented all but piix, run update-modules, > rebooted, but there are still many unused modules still loaded. If you're using the default Debian kernel, it loads all of the modules from the initrd, before it even mounts root. If you want to see what's going on, run: mount -oloop /initrd.img /mnt and look in /mnt. It's a cramfs, which is read-only. The loadmodules script shows you all of the modules that are loaded on boot. If you want to change this stuff, you need to do this: mkdir /tmp/initrd cp -a /mnt/* /tmp/initrd edit scripts in /tmp/initrd as needed. mkcramfs /tmp/initrd /boot/initrd.img-2.4.21-3-686-mine Change the /initrd.img symlink to point to /boot/initrd.img-2.4.21-3-686-mine Run lilo. Reboot. I do this to force the loading of hardware RAID modules on boot, but you can remove the IDE modules this way also. M pgp0.pgp Description: PGP signature
Re: Upon boot, many strange and useless modules are loaded
On Wed, 2003-07-30 at 06:15, [EMAIL PROTECTED] wrote: > On Tue, Jul 29, 2003 at 08:09:34PM -0400, Greg Folkert wrote: > > In /etc/modutil/aliases put in: > > Hmm, didn't help. :-( uncommented all but piix, run update-modules, > rebooted, but there are still many unused modules still loaded. That should have been /etc/modutils/aliases SORRY for the confusion -- greg, [EMAIL PROTECTED] REMEMBER ED CURRY! http://www.iwethey.org/ed_curry Your eyebrows are as verdantly forrested as the seeded woodworms of my most sombre dreams. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Upon boot, many strange and useless modules are loaded
On Tue, Jul 29, 2003 at 08:09:34PM -0400, Greg Folkert wrote: > In /etc/modutil/aliases put in: <...> > If you don't need any of them... uncomment all of them. > > Then run "update-modules" Hmm, didn't help. :-( uncommented all but piix, run update-modules, rebooted, but there are still many unused modules still loaded. Mody pgp0.pgp Description: PGP signature
Re: Upon boot, many strange and useless modules are loaded
On Tue, 2003-07-29 at 18:00, Rob VanFleet wrote: > On Tue, Jul 29, 2003 at 10:16:15PM +0200, [EMAIL PROTECTED] wrote: > > Nope. :-( > > Hmm, do you have hotplug or discover installed? Those will attempt to > autodetect hardware and load modules for them. Granted they're supposed > to load drivers for hardware you actually have... > > Sorry, just a shot in the dark. Let me see an lsmod output if the above > doesn't render anything useful. He's running the Debian Kernel Image 2.4.21-2- Right now, since the IDE Drivers have been broken out individually... they are all loaded by default... In /etc/modutil/aliases put in: # Uncomment these modules you don't want loaded: #alias ide-probe-mod off #alias trm290 off #alias triflex off #alias slc90e66 off #alias sis5513 off #alias siimage off #alias serverworks off #alias sc1200 off #alias rz1000 off #alias piix off #alias pdc202xx_old off #alias opti621 off #alias ns87415 off #alias hpt366 off #alias hpt34x off #alias generic off #alias cy82c693 off #alias cs5530 off #alias cmd64x off #alias cmd640 off #alias amd74xx off #alias alim15x3 off #alias aec62xx off #alias adma100 off If you don't need any of them... uncomment all of them. Then run "update-modules" -- greg, [EMAIL PROTECTED] REMEMBER ED CURRY! http://www.iwethey.org/ed_curry Fast blinking reveals the true visage of time pieces hidden within your eyes. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Upon boot, many strange and useless modules are loaded
On Tue, Jul 29, 2003 at 10:16:15PM +0200, [EMAIL PROTECTED] wrote: > On Tue, Jul 29, 2003 at 12:21:31PM -0500, Rob VanFleet wrote: > > Check /etc/modules. Any module entry in that file will be loaded at > > bootup. > > Nope. :-( Hmm, do you have hotplug or discover installed? Those will attempt to autodetect hardware and load modules for them. Granted they're supposed to load drivers for hardware you actually have... Sorry, just a shot in the dark. Let me see an lsmod output if the above doesn't render anything useful. Rob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Upon boot, many strange and useless modules are loaded
On Tue, Jul 29, 2003 at 12:21:31PM -0500, Rob VanFleet wrote: > Check /etc/modules. Any module entry in that file will be loaded at > bootup. Nope. :-( Mody # /etc/modules: kernel modules to load at boot time. # # This file should contain the names of kernel modules that are # to be loaded at boot time, one per line. Comments begin with # a "#", and everything on the line after them are ignored. agpgart isa-pnp hid mousedev irda irtty options ide-cd ignore=hdc pre-install sg modprobe ide-scsi pre-install sr_mod modprobe ide-scsi pre-install ide-scsi modprobe ide-cd unix af_packet # audio card i810_audio pgp0.pgp Description: PGP signature
Re: Upon boot, many strange and useless modules are loaded
On Tue, Jul 29, 2003 at 06:46:13PM +0200, [EMAIL PROTECTED] wrote: > Hi! > > On Sat, Jul 26, 2003 at 10:21:28AM -0500, Darin Strait wrote: > > After a little poking around, I found that all sorts of oddball modules (for > > which I don't have the hardware. serverworks?) had been loaded. After > > manually rmmod-ing them, my mouse unfroze and all was happy. > > I have the same problem. Lots of unused modules after boot-up, although my > mouse is not affected. Could not solve it... > > Using Debian testing on self-compiled 2.4.21 kernel. > > Anyone? Check /etc/modules. Any module entry in that file will be loaded at bootup. Rob -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Upon boot, many strange and useless modules are loaded
Hi! On Sat, Jul 26, 2003 at 10:21:28AM -0500, Darin Strait wrote: > After a little poking around, I found that all sorts of oddball modules (for > which I don't have the hardware. serverworks?) had been loaded. After > manually rmmod-ing them, my mouse unfroze and all was happy. I have the same problem. Lots of unused modules after boot-up, although my mouse is not affected. Could not solve it... Using Debian testing on self-compiled 2.4.21 kernel. Anyone? Mody pgp0.pgp Description: PGP signature
Re: Upon boot, many strange and useless modules are loaded
Mark Ferlatte wrote: Bizarre. The funky little modules are due to the IDE rework that was merged into 2.4.21. The advantage is much better IDE support, but a side effect is that the IDE code got broken up into a ton of chipset specific modules. Is this in -testing? -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Upon boot, many strange and useless modules are loaded
Darin Strait said on Sat, Jul 26, 2003 at 10:21:28AM -0500: > I had left the machine running for a few weeks, when I needed to shut it down. > After rebooting, my USB mouse is frozen upon reaching the KDM login screen. > > After a little poking around, I found that all sorts of oddball modules (for > which I don't have the hardware. serverworks?) had been loaded. After > manually rmmod-ing them, my mouse unfroze and all was happy. Bizarre. The funky little modules are due to the IDE rework that was merged into 2.4.21. The advantage is much better IDE support, but a side effect is that the IDE code got broken up into a ton of chipset specific modules. I think the Debian kernel maintainer just loads all of them for backwards compatibility purposes, since before they were all "loaded" in the monolithic IDE driver anyway. > My recurring problem is that all of the modules that I rmmod-ed re-appear > upon a reboot. I haven't had time to troubleshoot this all week, so I've been > limping along by running this script, which will result in my being able to > use my mouse. > > # begin included file > rmmod via82cxxx > rmmod trm290 > rmmod triflex > rmmod slc90e66 > rmmod sis5513 > rmmod siimage > rmmod serverworks > rmmod sc1200 > rmmod rz1000 > rmmod pdc202xx_old > rmmod opti621 > rmmod ns87415 > rmmod hpt366 > rmmod hpt34x > rmmod cy82c693 > rmmod cs5530 > rmmod cmd64x > rmmod cmd640 > rmmod amd74xx > rmmod alim15x3 > rmmod aec62xx > rmmod adma100 > rmmod pdc202xx_new > # end of file > > > Help? You should try and see if you can narrow down the problem; ie, if you can only unload _one_ module and your mouse starts working, that would probably be a useful bit to submit to the kernel maintaner as a bug. M pgp0.pgp Description: PGP signature
Re: Upon boot, many strange and useless modules are loaded
On Sat, 26 Jul 2003 16:30:14 +0200, Darin Strait wrote: > I have a simple Gateway consumer-grade machine with an i810e motherboard, > 866MHz/128MB/120MB ide. I am running 2.4.21-2-686. Using grub to boot my old > 2.4.20 does not help. > > I had left the machine running for a few weeks, when I needed to shut it down. > After rebooting, my USB mouse is frozen upon reaching the KDM login screen. > > After a little poking around, I found that all sorts of oddball modules (for > which I don't have the hardware. serverworks?) had been loaded. After > manually rmmod-ing them, my mouse unfroze and all was happy. If you don't need them, add 'alias module off' (for each module) to /etc/modutils/aliases and run update-modules. -- Stephen Patterson http://www.lexx.uklinux.net http://patter.mine.nu [EMAIL PROTECTED] remove SPAM to reply Linux Counter No: 142831 GPG Public key: 252B8B37 Last one down the pub's an MCSE -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]