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?

Share:
14,197

Related videos on Youtube

Luis Alvarado
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, 2022

Comments

  • Luis Alvarado
    Luis Alvarado almost 2 years

    I have noticed several cases where, if I use lsmod to find a module and then use modinfo 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 with modinfo.

  • Luis Alvarado
    Luis Alvarado over 11 years
    Above speaks for itself ^^. Is there any other case where this could also happen.
  • gertvdijk
    gertvdijk over 11 years
    @LuisAlvarado Perhaps, but this is the only one I know of.
  • fpghost
    fpghost over 10 years
    So if I have alias myModuleAlias someModule, does modinfo myModuleAlias not work? I would have expected this to be part of the point of an alias?