LinuxQuestions.org
Visit Jeremy's Blog.
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 06-14-2010, 05: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, 07:18 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

How are you implementing the commands? As root?
 
Old 06-14-2010, 07: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, 07:49 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 03: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, 10:45 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

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

'pciutils' will provide /sbin/lspci

..
 
Old 06-15-2010, 11:51 AM   #7
student04
Member
 
Registered: Jan 2004
Location: USA
Distribution: macOS, OpenBSD
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 11:55 AM.
 
Old 06-15-2010, 11:56 AM   #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 11:59 AM.
 
1 members found this post helpful.
Old 06-15-2010, 12:10 PM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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, 06: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, 12:58 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

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

# yum install lsscsi
.. will install the package.

..
 
1 members found this post helpful.
Old 06-16-2010, 09: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, 04: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, 09: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, 01:36 PM   #15
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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



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 10:44 AM
Automating modprobe commands rosspet Linux - Networking 4 08-06-2005 01:09 PM
commands "init" and "modprobe" not working Diagmato Fedora 2 07-22-2005 11:44 PM
modprobe, iwconfig, lsusb and other missing commands dubya Linux - Newbie 3 05-04-2004 09:27 PM
lsmod and modprobe commands rock9604 Linux - Newbie 10 05-02-2004 11:35 PM

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

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