LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-22-2011, 05:51 AM   #1
maddy09
LQ Newbie
 
Registered: Jul 2011
Posts: 10

Rep: Reputation: Disabled
how to unload Ethernet driver


hello , i have installed rhel 4 on my PC which has previously windows XP OS. now i want to install Ethernet driver but i am getting this error.

check old driver and unload it.
build the module and install
make : *** /lib/modlues/2.6.9-42.ELsmp/build: No such file or directory.Error 1 stop .
make [1]: ***[modlue]Error 2
 
Old 08-22-2011, 06:17 AM   #2
Lexus45
Member
 
Registered: Jan 2010
Location: Kurgan, Russia
Distribution: Slackware, Ubuntu
Posts: 352
Blog Entries: 3

Rep: Reputation: 47
Hello.

This shows the driver (module) used for my Ethernet card:
Code:
lexus@reinstein:~$ dmesg | grep Eth
[    0.656599] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded
By this command I ensure that the module r8169 is really present in the system:
Code:
lexus@reinstein:~$ lsmod | grep 8169
r8169                  42286  0 
mii                     5261  2 3c59x,r8169
To remove the module from the memory (until the next reboot) use the "rmmod" command:
Code:
rmmod r8169

To make the changes permanent you have to put the command "rmmod <module_name>" somewhere to the start scripts, say to /etc/rc.local or to some specific config-file of your distribution. In Ubuntu it's /etc/modprobe.d/blacklist.conf.

Last edited by Lexus45; 08-22-2011 at 06:27 AM.
 
Old 08-22-2011, 07:14 AM   #3
maddy09
LQ Newbie
 
Registered: Jul 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
i have tried this
]# dmesg | grep eth
its showing
divert : not allocating divert -blk for non_ethernet device lo.
divert : not allocating divert -blk for non_ethernet device sito
 
Old 08-22-2011, 08:49 AM   #4
lystor
Member
 
Registered: May 2010
Location: Ukraine, Donetsk
Posts: 43

Rep: Reputation: 3
Quote:
Originally Posted by maddy09 View Post
hello , i have installed rhel 4 on my PC which has previously windows XP OS. now i want to install Ethernet driver but i am getting this error.
check old driver and unload it.
build the module and install
Hi
Also you can use modprobe to unload modules:
Code:
# modprobe --remove --verbose MODULE
Quote:
make : *** /lib/modlues/2.6.9-42.ELsmp/build: No such file or directory.Error 1 stop .
make [1]: ***[modlue]Error 2
Try to fix this error by installing kernel-devel rpm with the same version as installed kernel:
Code:
# yum install kernel kernel-devel
# reboot
 
Old 08-22-2011, 08:51 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Hi,

you could as well use
Code:
lspci -k | grep -iA5 eth
to find out which module to search for and then grep for the module in the output of lsmod as Lexus45 wrote. If you don't get it, post the output of the above command here.

Markus
 
Old 08-23-2011, 05:06 AM   #6
maddy09
LQ Newbie
 
Registered: Jul 2011
Posts: 10

Original Poster
Rep: Reputation: Disabled
Unhappy

i have reinstalled the RHEL 4 on my PC.
i have tried this command
]# lspci -k | grep -iA5 eth
but its showing invalid command

i tried this
]# lspci -v | grep -iA5 eth
it shows
01:00.0 Ethernet controller : Realtek semiconductor co. pvt .ltd RTL8101E PCI Express fast Ethernet Controller (rev o1)
many other things like flags , memory usage ect.

here, it shows Ethernet is RTL8101E , so should i installed this driver ??


actually previously i did installation of the required driver for Ethernet and that time its was showing the error i have mention in very first post
i.e
check old driver and unload it.
build the module and install

as i am new for linux not getting the exact way to solve this .
 
Old 08-23-2011, 05:18 AM   #7
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 4,158

Rep: Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223Reputation: 1223
If you paid for Red Hat, ask them what to do! And if you didn't pay, you shouldn't be using it. Red Hat does not come with as much hardware support as most distros; a different one would probably has support for your ethernet port built-in.
 
Old 08-23-2011, 05:49 AM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850Reputation: 850
Quote:
Originally Posted by maddy09 View Post
...
here, it shows Ethernet is RTL8101E , so should i installed this driver ??
...
Please post the output of
Code:
lsmod | sort
Markus
 
Old 08-23-2011, 06:58 AM   #9
kostya
Member
 
Registered: Mar 2010
Location: Moscow, Russia
Distribution: Ubuntu Studio, antix(mepis), Fedora, FreeBSD
Posts: 173
Blog Entries: 5

Rep: Reputation: 17
Quote:
Originally Posted by DavidMcCann View Post
If you paid for Red Hat, ask them what to do! And if you didn't pay, you shouldn't be using it. Red Hat does not come with as much hardware support as most distros; a different one would probably has support for your ethernet port built-in.
Let alone that you're using an old version.
BTW, CentOS is compiled from RHEL sources and is free.
 
  


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
check old driver and unload it maddy09 Linux - Newbie 2 07-23-2011 01:52 AM
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
Unable to unload driver in 2.6 silverline Linux - Hardware 0 04-16-2004 01:38 PM
Unload a driver + dhclient + toastermaker Linux - Newbie 6 12-19-2003 08:16 PM


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