remove a module
I am a newbie and I am compiling a kernel in order to reduce the bootup time. I have a question as follows.
I am trying to remove a module. I used rmmod and modprobe. I can remove the module, but it is loaded again after reboot. How can I remove a module permanently? The module that I am trying to remove is lp. Thanks in advance. |
Hi,
You can do this either by removing this module from "/lib/modules" directory or by setting this module in blacklist. Please refer the link http://www.cyberciti.biz/tips/avoid-...toloading.html for more help. |
thanks for the info. I tried it, however, it does not work. The following is what I did.
1. I added a file, lp.conf under modprobe.d (blacklist lp) 2. I run depmod -aeF -v 2.6.33.5 3. I run update-initramfs -k 2.6.33.5 -u |
If you are compiling a kernel then you can specifically disable the module when compiling.
Failing that, try stopping cups from loading the module. http://ubuntuforums.org/archive/inde...t-1138455.html |
smoker,
Thanks for the info. I tried to build a new kernel last night by removing lp. Somehow, when I searched the char drivers, I did not see explicitly the lp driver. I also searched .config file, somehow, I did not see it. I will look at carefully later today. Meanwhile, if you would know where it is, please let me know. Thanks in advance. |
I compiled the kernel again that does not contain the lp.ko. As expected, there is no more lp module in the system.
|
All times are GMT -5. The time now is 01:13 AM. |