LinuxQuestions.org
Review your favorite Linux distribution.
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-19-2003, 04:41 PM   #1
toastermaker
Member
 
Registered: Oct 2003
Location: coastal alabama, united states
Distribution: Mandrake 10.0 official, slackware 9.1
Posts: 219

Rep: Reputation: 30
Unload a driver + dhclient +


How do I unload a driver other than not having it load in the first place?

Does dhclient load at start-up automatically? always? with only certain configurations or installed hardware?

I try to kill dhclient from command line as su and I get some dhclient info that ends with "exiting..." but then I hit "ctrl + esc" and dhclient is still running in the prosses' window. I try to kill it from there and am told I "don't have permission" to kill it

I am trying to troubleshoot and don't want to reboot every time to test with different configuration.

Thank you for any replies.
 
Old 12-19-2003, 05:01 PM   #2
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,207

Rep: Reputation: 63
To remove a module use the command "rmmod"

I not sure about the second question, but Mandrake has a tool to start and stop services graphically in the Mandrake Control Center.
 
Old 12-19-2003, 05:51 PM   #3
xilent
LQ Newbie
 
Registered: Dec 2002
Location: Dundee, UK
Distribution: debian GNU/Linux
Posts: 27

Rep: Reputation: 15
kill kill kill

if in doubt,

open a terminal window
become root (or use sudo - if u dont know what that means then just "su" to root)

type
#ps ax

and it will list a snapshot of the current processes,

find the number (PID) next to the dhclient,

{example 568 ? S 0:00 dhclient}

and type

#kill <enter PID here>

so for the baove example it would be

#kill 568

and hit return,

not the clearest but this will work

(please note that # is used as the prompt and should not be typed)
 
Old 12-19-2003, 07:35 PM   #4
toastermaker
Member
 
Registered: Oct 2003
Location: coastal alabama, united states
Distribution: Mandrake 10.0 official, slackware 9.1
Posts: 219

Original Poster
Rep: Reputation: 30
Just to make sure, so I dont screw something up "rmmod" wont delete anything will it?
I dont want to remove for ever, just cause not to be loaded.

Also ps ax seems to list in the order that processes' are started?

Thanks for your replies and help.
 
Old 12-19-2003, 08:06 PM   #5
m_yates
Senior Member
 
Registered: Aug 2003
Location: Upstate
Distribution: Debian, Mint, Mythbuntu
Posts: 1,207

Rep: Reputation: 63
rmmod won't delete anything. You can put it back again with "insmod".

If you want to prevent something from loading at boot time, go to command line as root enter:

kwrite /etc/modules

Look for the name of the driver you want to get rid of and coment it out or delete it.
 
Old 12-19-2003, 08:08 PM   #6
toastermaker
Member
 
Registered: Oct 2003
Location: coastal alabama, united states
Distribution: Mandrake 10.0 official, slackware 9.1
Posts: 219

Original Poster
Rep: Reputation: 30
Thanks m_yates
 
Old 12-19-2003, 08:16 PM   #7
toastermaker
Member
 
Registered: Oct 2003
Location: coastal alabama, united states
Distribution: Mandrake 10.0 official, slackware 9.1
Posts: 219

Original Poster
Rep: Reputation: 30
rmmod doesnt know my module is loaded and wont unload it.

I load the module myself because I cant get modules.conf to load it.

It is a tainted module.

Any ideas how to unload in this situation?

Thank you very much.
 
  


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
sk98lin driver forces link down on unload making windows unable to use it... AlexiaDeath Linux - Hardware 0 10-21-2005 01:00 PM
Can't unload (or power off) wireless card (ndiswrapper won't unload) shadowsnipes Linux - Wireless Networking 6 10-02-2005 11:48 AM
unload ub-module at boot? Urkburk Slackware 10 03-25-2005 06:35 AM
unload debugger and try again edemark Linux - Games 3 11-21-2004 09:20 AM
Unable to unload driver in 2.6 silverline Linux - Hardware 0 04-16-2004 01:38 PM


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