LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-17-2006, 11:10 PM   #1
cynicalicious
LQ Newbie
 
Registered: Mar 2006
Distribution: FC4
Posts: 3

Rep: Reputation: 0
Insmod seems to be missing (FC4 latest kernel)


Ok, I'm a relative Linux noob. I've managed to successfully download, make, make install, and cp the daily tarball for the rt2570 drivers (rt2570-cvs-2006031713) into rt2570.ko just fine. All of this was done as su (root privileges).

Then I get to insmod (still su, mind you), and I get back:

bash: insmod: command not found

I checked, and kernel-devel is installed. I'm running FC4 with kernel 2.6.15-1.1833-FC4 in i686 mode.

I did a man insmod, and I got the man page to come up for it, but no insmod itself. I'm guessing there's a package I'm missing, but I'm not sure what it is. I ran yum upgrade successfully just a couple of hours ago. Any help would be appreciated.
 
Old 03-17-2006, 11:17 PM   #2
victorh
Member
 
Registered: Jul 2005
Location: La Paz, Bolivia
Distribution: Debian Sarge - Sid, Slackware, Gentoo, openSuse, Fedora, Ubuntu, Mandriva
Posts: 241

Rep: Reputation: 30
This is typical of Fedora, you can't use the commands reserved to root in any directory. These commands are located in /sbin, so you can go to /sbin, and then type ./insmod.

If you want to avoid this problem again, you have the change the root's PATH.
 
Old 03-17-2006, 11:48 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,870

Rep: Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189Reputation: 2189
A little harsh victorh.
cynicalicious, use "su -" instead of "su" to avoid this problem.
 
Old 03-17-2006, 11:52 PM   #4
cynicalicious
LQ Newbie
 
Registered: Mar 2006
Distribution: FC4
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks-- going into /sbin and running insmod and depmod as ./insmod & ./depmod -a worked.

Now the next question is how do I change the root's path so that next time it'll work without having to go into /sbin?
 
Old 03-18-2006, 02:27 PM   #5
victorh
Member
 
Registered: Jul 2005
Location: La Paz, Bolivia
Distribution: Debian Sarge - Sid, Slackware, Gentoo, openSuse, Fedora, Ubuntu, Mandriva
Posts: 241

Rep: Reputation: 30
Quote:
Originally Posted by syg00
A little harsh victorh.
cynicalicious, use "su -" instead of "su" to avoid this problem.
Hi syg00, I didn't know that one. I've written down that in my notebook of Linux Tips. From now on I'll use "su -" in my Fedora PC.

You're right it's much better solution.
 
Old 03-18-2006, 02:35 PM   #6
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
Quote:
Originally Posted by cynicalicious
Thanks-- going into /sbin and running insmod and depmod as ./insmod & ./depmod -a worked.

Now the next question is how do I change the root's path so that next time it'll work without having to go into /sbin?
If you use 'su -' (note the dash) as the guy above said, then it also switches all the users environment variables so roots PATH also gets used, unlike 'su' which uses the current environment variables. This means /sbin will be included because it's in root's path.
 
Old 03-18-2006, 11:31 PM   #7
cynicalicious
LQ Newbie
 
Registered: Mar 2006
Distribution: FC4
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks. I understand it now. I looked back at the HOWTO for the rt2570 driver, and I missed the "- root" after the "su", thinking that just using "su" was enough. Thanks for the info-- I understand the use of "su" much better now.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
screensavers missing in fc4? nobby688 Fedora 3 11-09-2005 04:40 PM
wish binary missing in FC4? tlaresearch Fedora 3 09-17-2005 02:05 PM
kernel module insertion using insmod on kernel 2.4.20-8, rh 9.0 gooner Red Hat 1 05-27-2004 05:31 AM
missing insmod command caesarkim Linux - Networking 2 05-20-2004 02:49 PM
New 2.4.25 kernel, insmod errors davidsrsb Slackware 3 02-27-2004 05:55 AM

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

All times are GMT -5. The time now is 10:16 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration