LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Insmod seems to be missing (FC4 latest kernel) (https://www.linuxquestions.org/questions/linux-newbie-8/insmod-seems-to-be-missing-fc4-latest-kernel-425911/)

cynicalicious 03-17-2006 11:10 PM

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.

victorh 03-17-2006 11:17 PM

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.

syg00 03-17-2006 11:48 PM

A little harsh victorh.
cynicalicious, use "su -" instead of "su" to avoid this problem.

cynicalicious 03-17-2006 11:52 PM

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?

victorh 03-18-2006 02:27 PM

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.

Komakino 03-18-2006 02:35 PM

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.

cynicalicious 03-18-2006 11:31 PM

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. :D


All times are GMT -5. The time now is 06:36 PM.