[Webinar] Learn how to a build a cloud-first strategyRegister Now


Installing NIC driver in linux

Posted on 2005-04-14
Medium Priority
Last Modified: 2007-02-13
Let's say I had a NIC in my linux box that wasnt on the HCL, so the driver wasnt loaded. How would I go about getting the drive installed.

Let's start real basic. Say I throw the cdrom in with the linux driver on it
then do a

cp /mnt/cdrom/driver  /tmp

Now it's on the hard drive. What would I do from there? Does /etc house drivers or is it /dev??
Question by:dissolved
LVL 10

Expert Comment

ID: 13787085

3 options

1) you have you "driver" compiled inside the kernel

2)you can have module(driver)outside the kernel
and use modprobe command to install module
what modules are you currently using check with

3) on cdrom . If you have it on cdrom there are step by step instruction what you need to do to make it work
LVL 10

Assisted Solution

Luxana earned 400 total points
ID: 13787118
so basicaly first check what type of NIC do you have:
use command
then have a look to /lib/modules/ for appropriate module and use modprobe to istall module. If is not there recompile kernel

still do not know what linux you are running if it is redhat there is kudzu which can do some work for you

Author Comment

ID: 13787176
its mandrake 10.
lspci  is not a command on the shell i'm using. hmmm

If the driver was compiled inside my kernel , how would I get it?

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 10

Expert Comment

ID: 13787230
in that case it should load your NIC automaticaly.

learn more about modules here:


in future if you need more informations about linux this is very good webpage:

Expert Comment

ID: 13790274
"Say I throw the cdrom in with the linux driver on it"

As Luxana stated, there should be documentation on the cd (assuming it was something like the nic manufacturer's cd that included linux-specific drivers....if you've got a windows/Netware/BeOS/Rhapsody/CPM/OS2/OS9/Atari/Nintendo/PS2 OS driver cd it won't do you any good in Linux.  Are you certain you have a linux driver?  If so, have you viewed the cd to look for installation instructions?)

Assisted Solution

fixnix earned 400 total points
ID: 13790305
What model nic is it?  Perhaps we coud find the appropriate documentation for you.  I had a nic once that wasn't officially supported at the time, but was able to google up some kind soul's in-the-works driver in alpha stage....it was a bit complicated for me at the time, but it did work (Compaq T-Lan card....been standard part of stock kernels for years now but at the time the only way to get it working was to use the aplpha driver or write your own)

Accepted Solution

macker- earned 1200 total points
ID: 13830292
Make sure you're running as root.  Run the command "/sbin/lspci"

Different hardware vendors, who do support Linux, distribute their drivers in different ways.  At some point, there will be a driver.o file... the basic step required is to do "insmod ./driver.o".  If it has any dependencies, these must be loaded first.  A good driver will come in an RPM package designed for your distribution, and will be specific to your kernel.

IMPORTANT: kernel modules (drivers) are kernel version specific.  It may work partially, or refuse to load, if it's a version mismatch.

Many NIC's are supported under the ne, ne2k-pci, tg3, tulip, and other drivers.  If your card isn't supported, get a different one.  Honestly, it will be much simpler for you.  You can usually find a Netgear FE310/311 for under $10, for a better card an Intel EtherExpress Pro 100 (eepro100/e100) or any of the 3Com cards (e.g. 3c905).  Both have excellent support for many O/S's.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month20 days, 14 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question