how to prevent Ubuntu to automatically insert the modules

Tom H tomh0665 at
Tue Jun 22 15:11:10 UTC 2010

On Tue, Jun 22, 2010 at 8:57 AM, loody <miloody at> wrote:
> I try to trace gadet Mass storage driver in kernel, but each time I
> insert g_storage_file.ko the usb-storage.ko
> will be automatically inserted.
> Is there any way to prevent Ubuntu automatically instert the modules?

Create a file in /etc/modprobe.d containing
install usb-storage.ko /bin/true

More information about the ubuntu-users mailing list