LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   remove a module (https://www.linuxquestions.org/questions/linux-general-1/remove-a-module-813947/)

xinren 06-13-2010 06:57 PM

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.

blue_print 06-13-2010 07:29 PM

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.

xinren 06-13-2010 09:55 PM

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

smoker 06-13-2010 10:33 PM

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

xinren 06-14-2010 09:21 AM

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.

xinren 06-14-2010 08:29 PM

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.