Re: how can i remove unused but loaded kernel modules?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 09 June 2007 16:19, Mark wrote:
> Hey,
>
> At this moment i`m trying to make fedora boot as fast as possible and some
> things have to go in order to get that done.
> one of those things is removing all the unused (but still loaded) kernel
> modules.
>
> I did enter a few modules in the blacklist list (/etc/modprobe.d/blacklist)
> but the modules where still loaded.
>
> Any suggestions on how to remove those unused but loaded modules?
>
> btw rmmod modulename works but not after a reboot... i want to get them out
> of the lsmod list permanently!
>
> Thanx in favor,
> Mark/

Hi Mark. Specifically, which modules are you trying to get rid of?

You could make entries for them in /etc/rc.d/rc.local, which is the last init 
script to be run. Something like.
modprobe -r <module name>

Not sure if you can remove multiple modules on one line, but I think I'd put 
them on separate lines, and add them one at a time, in case something goes 
wrong, and one of them is needed, even though you may think it isn't.

IIRC someone also suggested renaming the modules in /lib/modules/uname -r/ 
(and so on, to wherever the modules are). This way, presumably as the modules 
will no longer be seen, they will no longer be loaded.

I'd go a bit carefull though. Maybe some of them do need to be loaded at 
bootup, even though removing them post bootup is causing you no problems.

Nigel.


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux