Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 14th February 2006, 07:32
ryoken ryoken is offline
Member
 
Join Date: Feb 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Question disable 2.6 kernel modules during bootup

does anyone know how to disable or turn off linux 2.6 kernel modules so that it doesn't load at startup? this question is for linux 2.6 (not 2.4) because in Debian 3.1 "Sarge", modules.conf is deprecated and has been replaced by modprobe.conf (or the directory /etc/modprobe.d). in the past, you would simply edit the modules.conf file and append "alias modulename off". this is no longer the case. if i add this line to a file in /etc/modprobe.d/, it thinks "off" is the unabbrievated module name of "modulename" (see man page of modprobe for further details).

i have also tried disabling the module in "hotplug" (using the blacklist) and skipping the module in /etc/discover.conf to no avail.

any suggestions would be much appreicated!

ps - the last thing i want to do is rename the module i want to disable (so that other programs can't find it)!
Reply With Quote
Sponsored Links
  #2  
Old 14th February 2006, 09:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Is the modules listed in /etc/modules? If so, remove it from there.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 16th February 2006, 02:44
ryoken ryoken is offline
Member
 
Join Date: Feb 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by falko
Is the modules listed in /etc/modules? If so, remove it from there.
unfortunately, the module i want to disable called "forcedeth" isn't listed in /etc/modules
Reply With Quote
  #4  
Old 16th February 2006, 07:37
ryoken ryoken is offline
Member
 
Join Date: Feb 2006
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
 
Unhappy

hmm... i just renamed the kernel module from "forcedeth.ko" to "_forcedeth.ko", but while booting, it still says its already loaded (according to hotplug).

i am still using "skip forcedeth" in discover, and have blacklisted "forcedeth" in hotplug, but its still loading. i checked dmesg, and "forcedeth.c" is loaded quite early in the boot process (looks like before or around the same time as when the hard drive PIO/DMA modes are detected.

does the mean that forcedeth has been statically loaded in the kernel? if so, how do i stop it from loading during bootup? i want to install the nVidia nForce drivers, and according to their documentation (http://download.nvidia.com/XFree86/n...aseNotes.html), you must disable forcedeth first.

strangely enough, i can use "modprobe -r forcedeth" when logged into Linux. so is forcedeth a kernel module or has it been statically built into the kernel? running "ifconfig -a" confirms that "eth0" no longer exists. but after rebooting, forcedeth is loaded in again, and eth0 is up.

any suggestions?
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compile Kernel 2.6 under Debian Sarge falko Kernel Questions 117 28th September 2009 14:03
problem with new kernel binary_dreamer Kernel Questions 2 22nd January 2006 22:32
Apache not adding domains adamluz Server Operation 3 16th August 2005 21:20
Use kernel 2.4 config for kernel 2.6? rookie Kernel Questions 1 20th May 2005 16:15
Install Debian Sarge with Kernel 2.6 root Installation/Configuration 4 10th May 2005 11:51


All times are GMT +2. The time now is 04:34.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.