You are not logged in.

#1 2012-04-11 18:23:46

frank419
Member
Registered: 2012-01-12
Posts: 33

[SOLVED] modprobe: command not found

I am fully up to date as of today.

I had a kernel panic and had to chroot and run:

pacman -Syy
pacman -S pacman
pacman -Syu
pacman -S udev
pacman -S mkinitcpio
sudo mkinitcpio -p linux

to repair.

Now, I can boot fine and when I tried to load a module, I got the command not found error.

I tried to re-install kmod but still nothing.

Any help would be appreciated.

Last edited by frank419 (2012-04-11 18:59:11)


Datacenter Ninja

Offline

#2 2012-04-11 18:26:01

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] modprobe: command not found

Something wrong with $PATH? When you 'su -', is modprobe still unavailable? What does 'sudo which modprobe' say?


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-04-11 18:28:49

frank419
Member
Registered: 2012-01-12
Posts: 33

Re: [SOLVED] modprobe: command not found

[arch ~]$ sudo which modprobe
Password: 
which: no modprobe in (/usr/local/bin:/usr/bin:/bin:/usr/games)
[arch ~]$ sudo find / -name modprobe
/sbin/modprobe
/proc/sys/kernel/modprobe
[arch ~]$ su -
Password: 
-bash: n#: command not found
-bash: thennfor: command not found
-bash: dontest: command not found
-bash: thenn.: command not found
-bash-4.2# modprobe
-bash: modprobe: command not found
-bash-4.2#

edit:code tags

Last edited by frank419 (2012-04-11 18:29:40)


Datacenter Ninja

Offline

#4 2012-04-11 18:29:39

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] modprobe: command not found

A silly question: is it executable?

Edit: I mean: is kmod executable as modprobe is now symlinked to kmod.

Last edited by bohoomil (2012-04-11 18:32:01)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#5 2012-04-11 18:31:18

frank419
Member
Registered: 2012-01-12
Posts: 33

Re: [SOLVED] modprobe: command not found

lrwxrwxrwx  1 root root   15 Mar 31 10:45 modprobe -> ../usr/bin/kmod

-rwxr-xr-x 1 root root       74K Mar 31 10:45 kmod

Datacenter Ninja

Offline

#6 2012-04-11 18:33:22

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: [SOLVED] modprobe: command not found

Can you run kmod? What output do you get?

Edit: Am blind. Take a look at your $PATH:

which: no modprobe in (/usr/local/bin:/usr/bin:/bin:/usr/games)

Add /sbin and you should be fine.

Last edited by bohoomil (2012-04-11 18:35:26)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#7 2012-04-11 18:58:52

frank419
Member
Registered: 2012-01-12
Posts: 33

Re: [SOLVED] modprobe: command not found

That did it, thank you my friend. /sbin was not in path, i edited the .bash_profile file. I need to take time to learn the upper level directories....

I learned valuable lesson today


Datacenter Ninja

Offline

Board footer

Powered by FluxBB