LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-08-2005, 08:50 PM   #1
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Rep: Reputation: 15
Exclamation can't find insmod


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)
 
Old 07-08-2005, 09:03 PM   #2
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
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.
 
Old 07-08-2005, 09:06 PM   #3
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
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)
 
Old 07-08-2005, 09:09 PM   #4
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
What happens if you type "which insmod" and "whereis insmod" as root?

Last edited by jrdioko; 07-08-2005 at 09:10 PM.
 
Old 07-08-2005, 09:10 PM   #5
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
it says 'no insmod in: ' and then it lists my $PATH directories
 
Old 07-08-2005, 09:21 PM   #6
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
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
 
Old 07-08-2005, 09:24 PM   #7
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
If you didn't figure it out, what is the output of "ls -l /sbin/insmod" and "echo $PATH" as root?
 
Old 07-08-2005, 09:47 PM   #8
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
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

and echo $PATH gives me:

/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/home/me/bin
 
Old 07-08-2005, 10:01 PM   #9
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
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.
 
Old 07-08-2005, 10:04 PM   #10
resist_r
Member
 
Registered: Jul 2005
Location: Wisconsin
Distribution: Slackware 10.2
Posts: 35

Original Poster
Rep: Reputation: 15
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)
 
Old 07-08-2005, 10:07 PM   #11
jrdioko
Member
 
Registered: Oct 2002
Distribution: Debian 6.0.2 (squeeze)
Posts: 944

Rep: Reputation: 30
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).
 
  


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
Help with insmod. I have a problem with insmod. RJARRRPCGP Linux - Newbie 5 08-24-2004 08:23 PM
insmod help rmosh Linux - Hardware 5 06-08-2004 06:35 PM
how to insmod? toastermaker Linux - Newbie 11 12-09-2003 09:07 PM
Where is insmod??? yalanop Linux - Newbie 1 01-26-2003 03:16 PM
insmod tincat2 Linux - Software 12 07-07-2002 02:11 AM

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

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