LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2004, 04:32 AM   #1
mwu
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Rep: Reputation: 0
Inserting and removing modules


Hi,

I'm really grasping at straws here, hoping that someone could answer my question fairly quickly.

I wrote a module (irrelevant as to what it does) and inserted it into the kernel. Worked fine, but upon running a program that used it, received a seg fault. Now I am unable to remove the module because the kernel still thinks its in use. I can't make changes to the module because I cannot insert the new one.

If anyone knows how to remove a module in a case like this, please let me know!! Thanks!

By the way, in case it's relevant information, I'm working with Red Hat v. 2.4.20.

Last edited by mwu; 03-12-2004 at 04:35 AM.
 
Old 03-12-2004, 12:44 PM   #2
pingswept
Member
 
Registered: May 2003
Location: Cambridge, MA
Distribution: SuSE, RedHat, and OpenBSD
Posts: 116

Rep: Reputation: 15
You can't reboot because it's someone else's server or something?
 
Old 03-12-2004, 01:45 PM   #3
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
lol. exactly what I was thinking. unless you have it autoloading the module then just reboot.
 
Old 03-12-2004, 04:34 PM   #4
mwu
LQ Newbie
 
Registered: Mar 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Sorry about that, forgot to mention that I was remotely connected via telnet. I was just wondering if there was any other way to do it than to reboot, but I guess there wasn't. (Other than renaming the module and trying again).

Thanks anyway, I fixed the problem today.
 
Old 03-13-2004, 12:31 AM   #5
mossy
Member
 
Registered: Aug 2003
Location: USexIRL
Distribution: *nix
Posts: 849

Rep: Reputation: 30
welcome, glad to see it went well.
If you ever need to reboot from remote you can -
shutdown -h now
will shut it down but then you will have to wait until it reboots [run a constant ping on it to see when it comes back up].
There are rarely times when you will have to reboot tho - you are correct there.
Usuallt the modprobe -R the.module will remove it.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
inserting a modules into the Kernel stielinc Linux - Software 1 01-22-2005 01:47 PM
error inserting alsa modules darkleaf Linux - Software 6 09-05-2004 05:40 AM
inserting modules during system startup jogurt666 Debian 3 01-15-2004 02:45 AM
Inserting modules wgodois Linux - Hardware 0 08-03-2003 09:37 AM
Modules: Inserting, removing etc.. tarballed Linux - General 12 06-02-2003 06:12 PM

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

All times are GMT -5. The time now is 06:41 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