9

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
  • 209,003
  • 167
  • 543
  • 707

2 Answers2

9

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?

gertvdijk
  • 67,007
  • 33
  • 188
  • 283
0

You just need to run:

depmod -a
Error404
  • 6,920
  • 1
  • 26
  • 50