LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 06-17-2008, 05:38 PM   #1
fancylad
Member
 
Registered: Mar 2008
Distribution: slackware
Posts: 175

Rep: Reputation: 19
How to load alternate kernel module on boot


I think this is the best section to post this question but I could be wrong. I would like to know how to prevent the kernel from loading a particular module at boot. Also I would like to know how to get the kernel to load an alternate module. For example, I am using ndiswrapper with a wireless nic. What happens is the kernel keeps loading a module that came with Debian. However this module doesn't work. So how can I get it to load ndiswrapper instead? I have added some commands to /etc/rc.local to remove the module, load ndiswrapper, then run dhclient and, while this does work, it is a cheap hack and I would like to know the proper way to solve this.

Thanks!
 
Old 06-17-2008, 06:10 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,334

Rep: Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547Reputation: 547
You might be able to solve this problem by editing /etc/modules. /etc/modules is a list of modules to be loaded at boot time.

--------------------
Steve Stites
 
Old 06-18-2008, 02:32 AM   #3
Takla
Member
 
Registered: Aug 2006
Distribution: Debian
Posts: 188

Rep: Reputation: 34
The correct way to do this in Debian is to create a file /etc/modprobe.d/00local and add to it the line

Code:
install yourmodulename /bin/true
and add to /etc/modules the module you want loaded

next time you boot the unwanted module will not be loaded, the one you added to /etc/modules will be.

Last edited by Takla; 06-18-2008 at 02:35 AM.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to load a kernel module at boot time yugandhar Linux - Kernel 1 09-08-2006 02:33 AM
how to load a kernel module at boot time yugandhar Linux - Kernel 1 08-19-2006 07:48 AM
Module doesn't load at boot gburch Linux - Hardware 2 05-04-2004 06:40 PM
load a module before another at boot-up? josejcs Linux - Newbie 1 11-05-2003 03:43 PM
module won't load at boot joeey21 Linux - Networking 9 09-15-2001 11:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:27 PM.

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