Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
modprobe and lsmod both give "command not found"
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
CarlUman
Apprentice
Apprentice


Joined: 07 Jul 2004
Posts: 158
Location: SE Iowa

PostPosted: Sat Apr 23, 2005 3:00 pm    Post subject: modprobe and lsmod both give "command not found" Reply with quote

Not sure what happened but after doing a system update (emerge -uDv world) I can no longer run modprobe or lsmod. I'm trying to get nvidia setup so I get back into kde but no dice yet. Any ideas?

I'm 8O
Thanks much
Carl
Back to top
View user's profile Send private message
mens
Guru
Guru


Joined: 27 Aug 2003
Posts: 392
Location: Belgium

PostPosted: Sat Apr 23, 2005 3:18 pm    Post subject: Reply with quote

Could it be that /sbin is no longer in your $PATH ? try running /sbin/modprobe or /sbin/lsmod
Back to top
View user's profile Send private message
Spiregrain
n00b
n00b


Joined: 17 Mar 2003
Posts: 5
Location: London

PostPosted: Sat Apr 23, 2005 3:20 pm    Post subject: Reply with quote

Have you tried:
    Logging in as root, since those commands might only be available to the root user?

    Re-emerging the sys-apps/modutils package?

    Looking for the executable files? Mine are in /sbin/?
Back to top
View user's profile Send private message
grannyknot
n00b
n00b


Joined: 16 Feb 2004
Posts: 3
Location: Toronto, Canada

PostPosted: Sat Apr 23, 2005 3:21 pm    Post subject: Reply with quote

Or you could look at the output of:
Code:
which modprobe

or
Code:
which lsmod

to see which locations are in your path.
Back to top
View user's profile Send private message
mens
Guru
Guru


Joined: 27 Aug 2003
Posts: 392
Location: Belgium

PostPosted: Sat Apr 23, 2005 3:39 pm    Post subject: Reply with quote

Spiregrain wrote:

    Re-emerging the sys-apps/modutils package?



For 2.6 kernels this may also be module-init-tools.
Back to top
View user's profile Send private message
CarlUman
Apprentice
Apprentice


Joined: 07 Jul 2004
Posts: 158
Location: SE Iowa

PostPosted: Sat Apr 23, 2005 4:38 pm    Post subject: Reply with quote

I should have mentioned that they were missing from sbin as well.

mens wrote:
Spiregrain wrote:

    Re-emerging the sys-apps/modutils package?



For 2.6 kernels this may also be module-init-tools.

Seems to right. I did an emerge modutils and now they are both there.

You mentioned module-init-tools. Since I'm using the 2.6 kernel should I have using them instead?

Thanks again.
Back to top
View user's profile Send private message
mens
Guru
Guru


Joined: 27 Aug 2003
Posts: 392
Location: Belgium

PostPosted: Sat Apr 23, 2005 5:19 pm    Post subject: Reply with quote

module-init-tools is a replacement for modutils. It was created to support the new features from 2.[56] like force unloading. I'm not sure if the latest version of modutils already supports all these new features. Switching to modules-init-tools can't hurt as it's backwards compatible with 2.4 kernels as well.
Back to top
View user's profile Send private message
CarlUman
Apprentice
Apprentice


Joined: 07 Jul 2004
Posts: 158
Location: SE Iowa

PostPosted: Sun Apr 24, 2005 11:48 am    Post subject: Reply with quote

Thanks. Now modprobe nvidia worked too :)
... wasn't working with modutils for some reason.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum