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.
Alright, here's the deal. I'm definitely a new linux user (so, please be gentle, and please be detailed). I just loaded it up with... Redhat 9 something or other (which, after browsing some of this forum, may not have been a good idea, but it's what i had). I'm trying to install a driver for my ethernet card (a netgear FA311, if you were wondering, and i know you were). i have the cd, i follow its instructions, and then it comes to this part where it tells me to insert the driver as module, using the insmod command (insmod fa31x.0, is what it says). I try. I really do. but all i get is
bash: insmod: command not found
well, i'm not a complete newb (i am, but i try and make myself feel better), so i punch in a find thing (this may seem stupid to some of you gurus, but i'm just trying hard). i enter it like this
find /* *insmod*
now, i'm assuming that what this does is begins at the base directory (/), and looks EVERYWHERE for anything that has insmod in it (i could be wrong). it finds nothing. not good for me. and so, i come before you now, to plead my case, in hopes that you, the veterans of linux, can come to my aid. thank you, and have a good day (any questions, feel free to ask, i'll try and answer)
Were you root when you ran insmod? Programs like that that make system-wide changes require you to be root. Type "su" to become root (entering your password when prompted), and "exit" when you're done to return to your normal user.
yes, i was logged in as root (i had tried, unknowingly, to run it before, and it said access denied, so i logged in as root, and that's when i get the whole command not found thing)
whoa, sorry man. i only did the which insmod. when i did the whereis insmod, it says it's in /sbin ... i think we solved it. if not, i'll post back. thanks again
um... not sure what you mean by figure it out, but here's the current situation (which is now a bit different from earlier...) i enter:
/sbin/insmod fa31x.o
and the shell says ' Warning: loading fa31x.o will taint the kernel: no license ' and then the computer locks up... which isn't a good sign, in my mind.
ls -l /sbin/insmod gives me:
-rwxr-xr-x 1 root root 146112 Feb 11 2003 /sbin/insmod
It looks like /sbin isn't in your PATH for some reason so you have to type the full path to insmod to run it. You can type "export PATH=$PATH:/sbin" or put that in /root/.bashrc to fix that. The second thing is that it's usually advised to use modprobe instead of insmod to insert kernel modules (I'm not sure what the difference is, but I know it's suggested to use modprobe).
As far as tainting the kernel goes, that message shows up when you're trying to load a module that doesn't have a license that's compatible with the kernel's GPL. That won't mess anything up, as I understand it it just means you won't be able to submit bug reports or anything to people working on the kernel since it now contains code they can't look at.
I'm afraid I don't know why it's locking up, though, so someone else will have to help from this point.
well, i thank you for all of your help, i will try the modprobe approach, and if that doesn't work, i'll create a new thread (since this one's title is now obsolete)
Just figured out a major difference between insmod and modprobe, by the way. Insmod simply loads the module, where modprobe does more checking (e.g. finding and loading dependencies).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.