LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 06-14-2010, 06:25 AM   #1
LinuxPro
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Rep: Reputation: 0
modprobe and lsscsi commands are not working


Hello,

I have Fedora 2.6.29. When Im trying to laod a kernel module by using modprobe, its throwing an error message 'Module not found'.
Also, when I use 'lssci' command to see the list of SCSI devices, this also doesn't work, and throws an error 'Command not found'.

However, I have used insmod to load my module and I am able to see its entry in /proc/scsi/scsi file, but why 'modprobe' and 'lssci' are not working. Is there any way to resolve this problem?

Many Thanks.
 
Old 06-14-2010, 08:18 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,549
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

How are you implementing the commands? As root?
 
Old 06-14-2010, 08:38 AM   #3
LinuxPro
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Yes, Im running them as root only.

Thanks
 
Old 06-14-2010, 08:49 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
When you do 'su' , the commands are :

/sbin/lspci
/sbin/modprobe

To have lspci , modprobe in your path, 'su -' is required.
.....
 
Old 06-15-2010, 04:17 AM   #5
LinuxPro
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
I have tried using /sbin/modprobe and /sbin/lsscsi also , but they are still not working.
Is there any package which I can install, if there is any, how I can install that. When I do 'rpm -q modutils', it says 'modutils is not installed'.
 
Old 06-15-2010, 11:45 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
The package : 'module-init-tools' provides /sbin/modprobe

'pciutils' will provide /sbin/lspci

..
 
Old 06-15-2010, 12:51 PM   #7
student04
Member
 
Registered: Jan 2004
Location: Georgia
Distribution: OS X, CentOS
Posts: 669

Rep: Reputation: 34
For modprobe to work, your module needs to be in this directory or a subdirectory therein:

Code:
/lib/modules/$(uname -r)
If that is true, then you need to execute

Code:
# depmod -a
which builds a list of modules that modprobe uses to find by name. Then try modprobe again.

-AM

Last edited by student04; 06-15-2010 at 12:55 PM.
 
Old 06-15-2010, 12:56 PM   #8
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
Could you type, as root, on your terminal the fallowing lines:

Code:
# whereis modprobe
# whereis lsscsi
And give us the output? Also, which Fedora you're using? 13? 12? ...?

Last edited by rfernandez; 06-15-2010 at 12:59 PM.
 
1 members found this post helpful.
Old 06-15-2010, 01:10 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Post # 1 :
Quote:
I have Fedora 2.6.29
That is Fedora 11.
But there are no differences between versions,
for 'module-init-tools' + 'pciutils', so far concerns
the commands, they provide.
The two packages are also usualy installed by default.
..
 
Old 06-15-2010, 07:24 PM   #10
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
But, is lsscsi a part of lspci? I don't know for Fedora, but for Slackware is in a separate package.
 
Old 06-16-2010, 01:58 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Sorry , I misread the lsscsi part.

# yum install lsscsi
.. will install the package.

..
 
1 members found this post helpful.
Old 06-16-2010, 10:28 AM   #12
LinuxPro
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
Hello,

Thanks to everyone for helping me till this time. I have installed the packages for lsscsi and module-init-tools. I am able to use lsscsi successfully now but still facing some issue with modprobe. When I use modprobe <module name>, its gives an error, <module name> doesn't exist.
I have tried this with and without root, and with and without /sbin path, but still its not working. However, I could install my module properly and able to see it in 'lsscsi' output,and also in /proc/modules file. I have tried evrything what all is suggested here in above comments, but something is still missing!!

Thanks.
 
Old 06-17-2010, 05:13 PM   #13
rfernandez
Member
 
Registered: Mar 2010
Location: Brazil
Distribution: Slackware64
Posts: 264

Rep: Reputation: 41
If it is a 3rd part module you should tell us how you installed it so we can point out what's missing. Generally, for a 3rd part module, you should build and install it. Afterwards, you should issue a "depmod -a" and then try to use "modprobe <module name>".
 
Old 06-18-2010, 10:11 AM   #14
LinuxPro
LQ Newbie
 
Registered: Jun 2010
Posts: 15

Original Poster
Rep: Reputation: 0
I have installed the package 'yum install module-init-tools' for modprobe and when I do 'whereis modprobe', I am able to find it in /sbin/... path. But, still I am not able to load my module using 'modprobe <module name>.It's giving the same error '<module-name> not found'.
I have tried 'depmod-a' command also, but still its not getting through.

Thanks.
 
Old 06-18-2010, 02:36 PM   #15
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 12,549
Blog Entries: 23

Rep: Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943Reputation: 1943
Hi,

Just curious, show us the complete 'modprobe' line that you are entering. What is the module you are attempting to load?

Quote:
Usage: modprobe [-v] [-V] [-C config-file] [-d <dirname> ] [-n] [-i] [-q] [-b] [-o <modname>] [ --dump-modversions ] <modname> [parameters...]
modprobe -r [-n] [-i] [-v] <modulename> ...
modprobe -l -t <dirname> [ -a <modulename> ...]
If you 'man modprobe' then all the information is there.
 
  


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
lsscsi et al for RHEL 4? tlemons Red Hat 2 04-28-2006 11:44 AM
Automating modprobe commands rosspet Linux - Networking 4 08-06-2005 02:09 PM
commands "init" and "modprobe" not working Diagmato Fedora 2 07-23-2005 12:44 AM
modprobe, iwconfig, lsusb and other missing commands dubya Linux - Newbie 3 05-04-2004 10:27 PM
lsmod and modprobe commands rock9604 Linux - Newbie 10 05-03-2004 12:35 AM


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