Why would modinfo say a module is not found when it appears with lsmod
14,197
It's being aliased. In my example (similar to yours perhaps):
lsmod | grep nvidia
nvidia 9171294 51
modinfo nvidia
ERROR: modinfo: could not find module nvidia
modprobe --resolve-alias nvidia
nvidia_current
grep -r nvidia /etc/modprobe.d/
/etc/modprobe.d/nvidia-graphics-drivers.conf:alias nvidia nvidia_current
modinfo nvidia_current
filename: /lib/modules/3.7.5-030705-generic/updates/dkms/nvidia_current.ko
alias: char-major-195-*
version: 313.09
[...]
Above should speak for itself, doesn't it?
Related videos on Youtube
![Luis Alvarado](https://i.stack.imgur.com/HtZ3d.png?s=256&g=1)
Author by
Luis Alvarado
System Engineer Social Engineer Master in Pedagogy Master in Open Source CCNA Certified Linux Foundation Certified Former Askubuntu Moderator Stack Careers | Linkedin | Launchpad | Ubuntu Wiki - Random SE Stuff - Latin American Members | JC Race Award | Human Robot Award 74
Updated on September 18, 2022Comments
-
Luis Alvarado almost 2 years
I have noticed several cases where, if I use
lsmod
to find a module and then usemodinfo
for that module, it comes out with a ERROR: Module not found message. For example with the Nvidia module (When using the proprietary drivers).So in what cases would a module appear on
lsmod
but give an ERROR like the one I mentioned above withmodinfo
. -
Luis Alvarado over 11 yearsAbove speaks for itself ^^. Is there any other case where this could also happen.
-
gertvdijk over 11 years@LuisAlvarado Perhaps, but this is the only one I know of.
-
fpghost over 10 yearsSo if I have
alias myModuleAlias someModule
, doesmodinfo myModuleAlias
not work? I would have expected this to be part of the point of an alias?