:: Re: [DNG] Boot hangs with usb disk …
Top Page
Delete this message
Reply to this message
Author: richard lucassen
Date:  
To: dng
Subject: Re: [DNG] Boot hangs with usb disk active in fstab
On Sun, 14 Jun 2020 19:11:38 +0200
"J. Fahrner via Dng" <dng@???> wrote:

> Am 2020-06-14 19:07, schrieb J. Fahrner via Dng:
> > modinfo: ERROR: Module usb_storage not found.
>
> Maybe they have their own drivers for usb?
>
> # find /lib/modules/3.16.82+/kernel/drivers -name '*storage*'
> /lib/modules/3.16.82+/kernel/drivers/usb/gadget/g_mass_storage.ko
> /lib/modules/3.16.82+/kernel/drivers/usb/gadget/usb_f_mass_storage.ko


$ find /lib/modules/5.6.0-2-amd64/kernel/drivers -name '*storage*'
/lib/modules/5.6.0-2-amd64/kernel/drivers/usb/storage
/lib/modules/5.6.0-2-amd64/kernel/drivers/usb/storage/usb-storage.ko
/lib/modules/5.6.0-2-amd64/kernel/drivers/usb/gadget/function/usb_f_mass_storage.ko

Or the module is built in the kernel.
What tells "modinfo g_mass_storage"? If it's the same module as
usb_storage having the same parameters, then:

echo "options g_mass_storage delay_use=5" > \
/etc/modprobe.d/g_mass_storage.conf

It's a pretty old kernel, if it doesn't work and the module is built
in, one thing you might try is to put:

#!/bin/dash
echo 5 > /sys/module/usb_storage/parameters/delay_use

in a script /etc/rcS.d/00test.sh

HTH

--
richard lucassen
https://contact.xaq.nl/