Messages in this thread | | | Date | Thu, 25 Mar 1999 14:08:43 -0500 (EST) | From | Greg Zornetzer <> | Subject | Re: kmod or ppa problem? |
| |
On Wed, 24 Mar 1999, Cody Pisto wrote:
> I seem to be having a problem with kmod. I compiled the ppa driver > as a module (parallel port zip drive) and accompanying parallel port > drivers as modules. I added "alias block-major-8 ppa" and "alias > parport_lowlevel parport_pc" to /etc/conf.modules. > This works as it should the first time I use the zip drive. 'mount /zip' > causes kmod to call modprobe and load the respective modules. When im Okay, good. Can we see the output of /sbin/lsmod here, and /proc/devices?
> done using the drive I 'umount /zip', some time later, again as it > should, kmod unloads the modules. This is where my problem begins. Whoa, hold on - kmod does not get involved in module removal (since about 2.1.10x) - check Documentation/kmod.txt - if you're not running something in the background like the appropriate cron job, you're not removing modules.
Anyway, can we also get the output of /sbin/lsmod here, and the output of cat /proc/devices
> 'mount /zip' instead of causing kmod to load the modules, produces > "mount: /dev/sda4 is not a valid block device". 'lsmod' proves that the > modules have not been loaded. 'modprobe ppa' does as expected and loads > the correct modules, 'mount /zip' works. I can not get kmod to > automatically handle the ppa module and dependencies, until I reboot. It > works once then not again. I honestly have no clue what could cause > this. Any ideas would be greatly appreciated.
Looking at the setup of my machine, I think I may see the problem - block-major-8 is the scsi-disk device. If you have unloaded ppa, but have not unloaded sd, then I could see this problem arising.
I have a couple of ideas of approaches to fixing the problem, but I'd like to hear what the output requested above looks like.
Good luck,
Greg Zornetzer - gaz+@andrew.cmu.edu "Light shines brightest in the darkest night" http://www.contrib.andrew.cmu.edu/~gaz
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
| |