-   Slackware (
-   -   lsmod doesn't show sr_mod after loading it with modprobe (

Sansveni 03-12-2014 06:11 PM

lsmod doesn't show sr_mod after loading it with modprobe
I'm running Slackware 14.1 (I just installed it actually after wrestling for what must've been more than 8 hours total with trying to USB install, to just DVD install but then figuring out booting from LVM...). I'm not that experienced with Linux, which is why I installed Slackware. I must say, I've learnt a LOT just installing it.

The problem is, I loaded sr_mod in modprobe (trying to get a USB DVD drive to work, actually; you might see another post on this if I can't figure that out either), and then did lsmod | grep sr_mod, but it isn't finding anything.

Here's roughly what I did (I redid the steps for the log):
~# lsmod | grep sr_mod
~# lsmod | grep snd
snd_hda_codec_hdmi 29622 1
snd_hda_codec_idt 37403 1
snd_hda_intel 34861 3
[truncated, I'm just showing that grepping this works]
~# modprobe sr_mod
~# lsmod | grep sr_mod [Still nothing]
~# modprobe sr_mod --first-time
modprobe: ERROR: could not insert 'sr_mod': Module already in kernel

I kept thinking that it was modprobe's fault, that it was somehow not loading, but not bothering to tell me, but as that last command shows, that doesn't seem to be the case.

I also tried searching /proc/modules, but it doesn't find it.

Any idea what's going on? I'm curious as to why lsmod didn't seem to refresh...or is the module not really loaded and modprobe thinks it is?

ljb643 03-12-2014 08:39 PM

In the Slackware 14.1 kernel, the "sr" driver (SCSI CD-ROM) is compiled in to the kernel. It is not a loadable module. So lsmod won't list it. modprobe (apparently) sees the driver is already in the kernel and therefore does nothing.

Sansveni 03-12-2014 09:17 PM

Ah, thanks. Running modprobe --check-depends also lists it as builtin. :P I added --first-time to see if it were loaded already.

All times are GMT -5. The time now is 09:23 PM.