how to prevent Ubuntu to automatically insert the modules

Mark Widdicombe mwiddicombe at shoprite.co.za
Mon Dec 6 07:23:40 UTC 2010


hi all:
thanks for your kind help :)


2010/6/22 Tom H <tomh0665 at gmail.com>:
> On Tue, Jun 22, 2010 at 8:57 AM, loody <miloody at gmail.com> 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
it works fine.
I hve some questions:
1. what is the mechanism that ubuntu can automatically load modules?
2. is it possible to only restrict usb-storage.ko from loading when I
insert g_storage_file.ko?
appreciate your help,
miloody

--
ubuntu-users mailing list
ubuntu-users at lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users

Disclaimer
http://www.shopriteholdings.co.za/pages/1019812640/disclaimer/E-mail-Disclaimer.asp



More information about the ubuntu-users mailing list