LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-04-2004, 09:35 PM   #1
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Rep: Reputation: 15
How to uninstall modules?


Hello,
I use MDK 10 and I have a wireless card that uses a module called 'ndiswrapper' as its driver. By default, MDK loads a driver called 'prism54' which does not work with this card and conflicts with ndiswrapper. So, every time I start up Linux, I have to run

modprobe -r prism54
modprobe -r ndiswrapper
modprobe ndiswrapper

as root and this all works fine. I would like to know, how can I permanently get rid of this annoying module called 'prism54' and make sure that MDK doesn't load it automatically? A GUI tool is preferable but I'm grateful for command line methods too. I would also like some way to make MDK load the correct driver when the wireless card is detected.
Thanks!
 
Old 12-04-2004, 10:58 PM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
the man pages are your friend.............

man rmmod


http://man.linuxquestions.org/index....pe=2&section=8
 
Old 12-05-2004, 12:55 AM   #3
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Original Poster
Rep: Reputation: 15
Thank you for your reply!
However I do not believe this particular module can be removed using this tool, since I had to patch the kernel to put it in, and the darn source doesn't have anything for "make uninstall". What I have instead is something that is located in the following directory:

/lib/modules/2.5.3-7mdk/kernel/3rdparty/prism54/

and it's a file called prism54.ko.gz. If I type

#rmmod prism54

It tells me 'Module prism54 does not exist in /proc/modules'. I don't understand. It probably isn't safe to just delete this fellow, so should I just recompile my kernel? Can I do everything with RPM's maybe?
Thanks!

Last edited by johngcarlsson; 12-05-2004 at 01:30 AM.
 
Old 12-05-2004, 01:31 AM   #4
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
Your best bet is to look at your modules.conf file or its moral equivalent, and delete the line that loads that module on boot.
 
Old 12-05-2004, 02:17 AM   #5
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Original Poster
Rep: Reputation: 15
Hrmm. Both my 'modules' and my 'modules.conf' files don't seem to contain any line that loads this driver. I search for all the files in my /lib/modules/ directory that contain the phrase 'prism54' and there are three files:

2.6.3-7mdk/modules.alias
2.6.3-7mdk/modules.dep
2.6.3-7mdk/modules.pcimap

is it safe to delete lines from these files? Would that accomplish anything? Sorry I'm so new to this, and thanks a lot for all your help!
 
Old 12-05-2004, 03:09 AM   #6
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Original Poster
Rep: Reputation: 15
Also,
When I start up my machine and it's not plugged into the network, it takes FOREVER to register that I'm not plugged in. That is, at bootup, the line
'Bringing up interface eth0...'
sits there for like five minutes. Does anybody know how I can speed this up? Thanks a lot!
 
Old 12-05-2004, 04:23 AM   #7
Draygo
Member
 
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
Well I think the major thing is that you compiled it INTO the kernel rather than as a module. As such I think you would have to recompile your kernel.

As for the network thing....its probably looking for a DHCP server. If you want you can always ctrl-c out of it and then after you login as root you can bring up the interface with an ifup eth0 after you are plugged into the network.
 
Old 12-05-2004, 03:08 PM   #8
johngcarlsson
Member
 
Registered: Jul 2004
Posts: 58

Original Poster
Rep: Reputation: 15
I see. But there's no place where I can tell the machine to give up bringing up that particular interface if it takes longer than, say five minutes? Like how you can specify how long to wait until a server times out?
Thanks!
 
Old 12-06-2004, 03:04 AM   #9
Draygo
Member
 
Registered: May 2004
Location: Frisco, TX
Distribution: Debian Unstable
Posts: 73

Rep: Reputation: 15
Well you can always tell the interface not to auto up or just not start networking on boot up. Just rename your rc file so networking isn't started up. Then when you are ready to start networking just use the /etc/init.d script to start it up.
 
  


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
uninstall from src if no make uninstall dtra Linux - Software 3 04-29-2005 10:13 AM
How to uninstall perl modules ust Linux - Software 1 01-27-2005 09:28 AM
Source uninstall with 'make uninstall' HOWTO! Creeps Linux - Newbie 6 09-14-2004 12:03 PM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - General 1 01-24-2002 02:50 AM
Re: modprobe: Note: /etc/modules.conf is more recent than lib/modules/2.4.9/modules.d Andy.M Linux - Newbie 2 01-24-2002 02:40 AM


All times are GMT -5. The time now is 09:50 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration