LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 05-19-2019, 11:16 AM   #1
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Rep: Reputation: 16
Remove/uninstall NIC driver


Hello linux experts,

I have installed by mistake a wrong NIC ethernet driver for my integrated NIC. Integrated NIC is recognized as generic r1000 device and it is very unstable with a lot of packets lost.
I have tried rmmod r1000 but after reboot, it is still there.

I have used make clean modules and make install in order to install driver. Is there some kind of unmake command?

The problem was generated in the following way.
I have a motherboard with integrated realtek NIC. I have used some internal network card Intel and everything was OK. Integrated NIC wasn't used. Then I decided to remove this Intel card and to install drivers for integrated NIC.
After download and install drivers from Realtek web site, generic r1000 is recognized and loaded. Now my eth0 use r1000 and it works unstable. Now, when I insert Intel NIC card again, it is recognized as eth1 and this is not what I want.
In order Intel to be recognized as eth0 I need to disable or uninstall driver for integrated realtek.

How can I do that?

Thank you.
 
Old 05-19-2019, 11:29 AM   #2
teckk
LQ Guru
 
Registered: Oct 2004
Distribution: Arch
Posts: 5,137
Blog Entries: 6

Rep: Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826Reputation: 1826
If you are using redhat, why aren't you using your package manager to install things. Then it would have a record in it's database and you can easily uninstall something. If you installed from source then, if it came with an uninstall script, use it. Otherwise you will have to look and see where all the files were installed and remove them manually.
 
Old 05-19-2019, 11:31 AM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Run "make uninstall" in the same directory where you did "make install". That should remove the kernel module under /lib/modules/$KVER. After removing the module, reboot and your add-in card should be eth0.
 
Old 05-19-2019, 11:38 AM   #4
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by teckk View Post
If you are using redhat, why aren't you using your package manager to install things. Then it would have a record in it's database and you can easily uninstall something. If you installed from source then, if it came with an uninstall script, use it. Otherwise you will have to look and see where all the files were installed and remove them manually.
Yes, I'm using redhat and I have installed driver according to the readme file. In the very same file there is no info about uninstallation.
Attached Files
File Type: txt readme.txt (1.9 KB, 20 views)
 
Old 05-19-2019, 11:42 AM   #5
Micik
Member
 
Registered: Dec 2004
Distribution: Red hat linux 9
Posts: 189

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by smallpond View Post
Run "make uninstall" in the same directory where you did "make install". That should remove the kernel module under /lib/modules/$KVER. After removing the module, reboot and your add-in card should be eth0.
If I type make uninstall in the same (src) folder in which I typed make clean modules, make installa and finally depmod -a, I get the following error:no rule to make target 'uninstall'

How about to execute rmmod and then to delete r1000.o from /lib/modules/.../net folder?

I was thinking about more thing to try, but like to ask first.
Can I edit /etc/modules.conf and change alias from eth0 r1000 to for ecxample eth1 r1000, but I want kudzu to ask me to migrate network config to eth0 which will e Intel add in card

Last edited by Micik; 05-19-2019 at 11:47 AM.
 
  


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
On uninstall, does it make more sense to remove or remove completely? annadane Debian 6 01-30-2017 02:47 PM
x86 Solaris 10 nic driver added but not attached. NIC is not detected. vectrum Solaris / OpenSolaris 0 01-22-2012 12:05 PM
vfe NIC driver: "Add hostname for the NIC card into the /etc/hosts file???" gluesniffmonkey Solaris / OpenSolaris 5 06-09-2008 04:40 PM
NIC Driver for NVidia NForce onboard NIC. rajjpajj Linux - Software 9 09-28-2004 03:54 PM
Uninstall without make uninstall zynor Linux - Software 3 08-23-2003 10:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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