LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices

Reply
 
LinkBack Search this Thread
Old 11-23-2009, 08:16 PM   #1
kenberto
LQ Newbie
 
Registered: May 2005
Posts: 2

Rep: Reputation: 0
How to remove kernel modules with each boot, in fedora 11.


I had a problem running VirtualBox, and found the solution to this problem (collision with kvm) was to run:
sudo modprobe -r kvm_intel

The only problem is, I have to manually run this each time I boot. I would like this to happen automatically. I poked around /etc/modprobe.d/*.conf but these just seem to effect how the modprobe command works.

So, is there a nice safe way to save me from having to manually remove each time I boot (which is rare enough I'll probably forget the magic command by then)? Any way to do this would be great, but it would be especially nice to know if I can find why and where kvm_intel is coming from, and block it there.

Thanks!
 
Old 11-23-2009, 08:31 PM   #2
kilgoretrout
Senior Member
 
Registered: Oct 2003
Posts: 2,264

Rep: Reputation: 128Reputation: 128
You should be able to blacklist the module in /etc/modprobe.d/blacklist.conf but it's not clear from your post whether you already tried that and it didn't work. To blacklist the module just edit blacklist.conf by adding the following at the end of the file:

kvm_intel

If that doesn't do the job, edit /etc/rc.d/rc.local by adding this line at the end:

modprobe -r kvm_intel

rc.local is useful because it runs with root privileges during boot and is the last init script to run. If something keeps reinserting the module in the init sequence rc.local will clean it up at the end.

Last edited by kilgoretrout; 11-23-2009 at 08:33 PM.
 
Old 11-25-2009, 03:31 PM   #3
kenberto
LQ Newbie
 
Registered: May 2005
Posts: 2

Original Poster
Rep: Reputation: 0
I hadn't tried blacklist-ing and it works perfectly. Thank you!
 
Old 11-27-2009, 12:56 AM   #4
cetialphav
Member
 
Registered: Sep 2003
Location: Raleigh, NC, USA
Distribution: Fedora
Posts: 88

Rep: Reputation: 16
Instead of modifying /etc/modprobe.d/blacklist.conf, you can just add a new file into /etc/modprobe.d/ with the relevant blacklist command. The advantage of this is that /etc/modprobe.d/blacklist.conf is owned by the hwdata rpm and so could get changed on an update or upgrade. You would then have to track down what to modify to get the old behavior back. With a separate file for your own modifications, you will never have to worry about this.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
want to remove first window boot on fedora fatan Fedora 5 08-10-2009 10:34 AM
How to determine and remove modules load at kernel boot? Zyndarius Debian 3 07-17-2009 12:19 PM
Compiling a custom kernel, automatically remove unused modules ? sauce Linux - Kernel 1 01-29-2008 12:20 AM
change/remove boot modules drummerdan Slackware 3 03-02-2006 03:26 PM
Kernel Modules at boot Alan Lakin Linux - General 4 09-30-2002 12:08 PM


All times are GMT -5. The time now is 04:26 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration