LinuxQuestions.org
Review your favorite Linux distribution.
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 08-23-2005, 05:25 PM   #1
lixy
Member
 
Registered: Apr 2004
Posts: 120

Rep: Reputation: 15
removing modules loaded upon boot


Hi all,

Anyone knows a quick way to get rid of a module? No! rmmod won't do because I don't even get a prompt.
I upgraded all my system (debian sarge) tonight and upon reboot (kernel 2.6.11) I had a horrible kernel panic error saying it cannot mount my root partition.
Obviously, from the error message (sorry I didn't post it), the module software suspend is responsible for that. I am certain that if the module isn't invoked, there would be no more problems; The proof is that when using an old kernel without software suspend support, ithe partition is mounted flawlessly.
I patched my kernel to accepr support for the software suspend http://www.suspend2.net/ module. Now how do I get rid of it without recompiling the kernel.

Any suggestion is very welcome.
 
Old 08-23-2005, 05:33 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,509

Rep: Reputation: 46
Boot the machine with a knoppix-like cd. Mount the debian root partition. Go to /lib/modules/ and try to find the offending module file. Rename it from module.ko to module.ko.bak. This way, debian will fail to load it even if it tries. There will be a warning msg at dmesg, that's all.
 
Old 08-25-2005, 03:18 PM   #3
lixy
Member
 
Registered: Apr 2004
Posts: 120

Original Poster
Rep: Reputation: 15
Talking Issue solved

Thanks for your advice. The point was that I already looked in /lib/modules before posting but couldn't find anything. I was hoping there was some file from which the modules were called and that I could edit manually.
Anyway, that was not feasible because it turned out the software suspend was built into the kernel (I did it myself but then assumed it could only be a module since I had to patch the kernel).
What caused the problem BTW was an update of everything thru Synaptic. As soon as I rebooted, the kernel panic showed up with something like:
Quote:
Unable to mount root partition Not sync.
I compiled a fresh kernel but it didn't help. Confirming that was no Software Suspend problem.
After two days of being stuck with bloody M$, and trying a fresh install (BTW, using the latest debian testing with kernel 2.6 couldn't detect my internet connection ) I had to stick to stable with kernel 2.4. But then I had to reconfigure my video chip, my wlan card, install all the apps, configure them... and that was costly for a very busy student. I had to find a solution to recover my old system.
Then, I tried something out of the blue: Add the initrd line in /boot/grub/menu.lst with the appropriate image as parameter (i.e: the one that I built for the old 2.6 kernel in question. Guess what? It worked!
I never came across anything that strange and unexplainable with any Linux distro. From my experience, it is safe to say that kernel 2.6 is not the best choice for production machines.

Last edited by lixy; 08-25-2005 at 03:20 PM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I auto start modules that aren't auto loaded on boot? darkbluedrew Debian 2 09-18-2005 10:10 AM
Change Loaded Modules thadco Linux - Hardware 1 09-06-2005 08:58 PM
Nvidia and ivtv modules have to be loaded manually. Fail on boot Pcghost Debian 2 03-16-2005 10:00 AM
Removing automatically loaded modules Abe_the_Man Slackware 1 11-21-2003 02:42 AM
kernel modules loaded at boot time gusgorman Slackware 10 04-14-2003 11:45 AM


All times are GMT -5. The time now is 08:16 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration