Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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 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.
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
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.