LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to unload Ethernet driver (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-unload-ethernet-driver-898728/)

maddy09 08-22-2011 04:51 AM

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

Lexus45 08-22-2011 05:17 AM

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.

maddy09 08-22-2011 06:14 AM

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

lystor 08-22-2011 07:49 AM

Quote:

Originally Posted by maddy09 (Post 4449933)
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


markush 08-22-2011 07:51 AM

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

maddy09 08-23-2011 04:06 AM

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 . :(

DavidMcCann 08-23-2011 04:18 AM

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.

markush 08-23-2011 04:49 AM

Quote:

Originally Posted by maddy09 (Post 4450911)
...
here, it shows Ethernet is RTL8101E , so should i installed this driver ??
...

Please post the output of
Code:

lsmod | sort
Markus

kostya 08-23-2011 05:58 AM

Quote:

Originally Posted by DavidMcCann (Post 4450921)
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.


All times are GMT -5. The time now is 01:00 PM.