LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-13-2010, 06:57 PM   #1
xinren
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Rep: Reputation: 0
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.
 
Old 06-13-2010, 07:29 PM   #2
blue_print
Member
 
Registered: May 2010
Location: In world
Distribution: RHEL, CentOS, Ubuntu
Posts: 275
Blog Entries: 3

Rep: Reputation: 50
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.
 
Old 06-13-2010, 09:55 PM   #3
xinren
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 0
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
 
Old 06-13-2010, 10:33 PM   #4
smoker
Senior Member
 
Registered: Oct 2004
Distribution: Fedora Core 4, 12, 13, 14, 15, 17
Posts: 2,279

Rep: Reputation: 250Reputation: 250Reputation: 250
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
 
1 members found this post helpful.
Old 06-14-2010, 09:21 AM   #5
xinren
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
Old 06-14-2010, 08:29 PM   #6
xinren
LQ Newbie
 
Registered: Jun 2009
Posts: 10

Original Poster
Rep: Reputation: 0
I compiled the kernel again that does not contain the lp.ko. As expected, there is no more lp module in the system.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
can't remove module wizumwalt Linux - Kernel 1 09-29-2009 09:47 PM
Remove stubborn module--How to? riprap1951 Linux - Newbie 2 02-19-2009 03:29 AM
how to remove a module from kernel htamayo Debian 1 06-18-2008 11:31 AM
Modprobe module remove kg4ysy Linux - General 1 01-25-2006 08:41 AM
remove a module os2 Linux - General 3 11-04-2005 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration