[opensuse] Force module not to load
Hi, usb_storage is giving me troubles under 10.1 so I'd like to prevent the system from loading the module completely since I don't need it. How do I accomplish this? -Teemu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun February 11 2007 17:17, Teemu Nikkilä wrote:
usb_storage is giving me troubles under 10.1 so I'd like to prevent the system from loading the module completely since I don't need it. How do I accomplish this?
Hi Teemu, I've got a file here (10.2) called 'modules.unsupported' under /lib/modules/2.6.18.2-34-default/ It looks to me like it's just one big module blacklist (last seven lines from mine):
blacklist affs blacklist adfs blacklist jfs blacklist efs blacklist bfs blacklist kafs blacklist 9p
For the mailing list, since I don't know myself: Is this is the new method for blacklisting troublesome modules? regards, Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Carl Hartung wrote:
On Sun February 11 2007 17:17, Teemu Nikkilä wrote:
usb_storage is giving me troubles under 10.1 so I'd like to prevent the system from loading the module completely since I don't need it. How do I accomplish this?
I've got a file here (10.2) called 'modules.unsupported' under /lib/modules/2.6.18.2-34-default/
It looks to me like it's just one big module blacklist (last seven lines from mine):
blacklist affs blacklist adfs
For the mailing list, since I don't know myself: Is this is the new method for blacklisting troublesome modules?
I believe it is /etc/modprobe.d/blacklist. -- Joe Morris Registered Linux user 231871 running openSUSE 10.2 x86_64 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun February 11 2007 18:09, Joe Morris (NTM) wrote:
I believe it is /etc/modprobe.d/blacklist.
Thanks, Joe, I haven't dealt with that issue for so long I'd forgotten where it was. Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sunday 11 February 2007 23:17, Teemu Nikkilä wrote:
Hi,
usb_storage is giving me troubles under 10.1 so I'd like to prevent the system from loading the module completely since I don't need it. How do I accomplish this?
Edit /etc/modprobe.conf.local and add the line install usb_storage /bin/true It sounds backwards, but it will prevent use_storage from loading -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun February 11 2007 18:12, Anders Johansson wrote:
Edit /etc/modprobe.conf.local and add the line
install usb_storage /bin/true
It sounds backwards, but it will prevent use_storage from loading
Hi Anders, Is this because doing so 'reserves' the module for user space? Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 12 February 2007 00:22, Carl Hartung wrote:
On Sun February 11 2007 18:12, Anders Johansson wrote:
Edit /etc/modprobe.conf.local and add the line
install usb_storage /bin/true
It sounds backwards, but it will prevent use_storage from loading
Hi Anders,
Is this because doing so 'reserves' the module for user space?
Hm, not sure what you mean by that. The "install" directive tells modprobe what to do when loading the module. If you don't have an "install", it will simply go ahead and load it. If you have one, it will run those commands *instead* of loading it. You could for example use it to run other commands before the module is loaded, for example install foo cmd1; cmd2; modprobe --ignore-install foo this will run the commands cmd1 and cmd2, and then load the module (the --ignore-install is so there isn't a perpetual loop) In the case above, with /bin/true, it will simply run /bin/true instead of loading the module, and nothing else. /bin/false would sound more logical to a human, but it returns "false" on exit, so modprobe thinks there was an error, and this would interrupt a boot, and/or give annoying error messages in the log -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Sun February 11 2007 18:26, Anders Johansson wrote:
Is this because doing so 'reserves' the module for user space?
Hm, not sure what you mean by that.
It was a spontaneous guess, so there's not much meaning there, anyway ;-)
The "install" directive tells modprobe what to do when loading the module. If you don't have an "install", it will simply go ahead and load it. If you have one, it will run those commands *instead* of loading it.
*Now* I get it!
/bin/false would sound more logical to a human, but it returns "false" on exit, so modprobe thinks there was an error, and this would interrupt a boot, and/or give annoying error messages in the log
Thanks for the clarification, Anders. Carl -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 12 February 2007 07:05, Carl Hartung wrote:
/bin/false would sound more logical to a human, but it returns "false" on exit, so modprobe thinks there was an error, and this would interrupt a boot, and/or give annoying error messages in the log
This is what we implement in Finance dept so that users cannot copy data out of the PC using any USB storage device: /etc/modprobe.conf: install usb_storage \ wall "Sorry, no USB storage devices are allowed" \ && /bin/false Make sure we reboot the PC before it takes effect, or unload the module manually: modprobe -r usb_storage HTH, -- Fajar Priyanto | Reg'd Linux User #327841 | Linux tutorial http://linux2.arinet.org 3:46pm up 2:35, 2.6.16.21-0.8-default GNU/Linux Let's use OpenOffice. http://www.openoffice.org
/etc/modprobe.conf: install usb_storage \ wall "Sorry, no USB storage devices are allowed" \ && /bin/false
Make sure we reboot the PC before it takes effect, or unload the module manually: modprobe -r usb_storage
Thanks to all, I'll test this soon. -Teemu -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday 12 February 2007 09:46, Fajar Priyanto wrote:
On Monday 12 February 2007 07:05, Carl Hartung wrote:
/bin/false would sound more logical to a human, but it returns "false" on exit, so modprobe thinks there was an error, and this would interrupt a boot, and/or give annoying error messages in the log
This is what we implement in Finance dept so that users cannot copy data out of the PC using any USB storage device:
/etc/modprobe.conf: install usb_storage \ wall "Sorry, no USB storage devices are allowed" \ && /bin/false
But then you'll get error messages. /bin/true gives the same effect but without error messages -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (5)
-
Anders Johansson
-
Carl Hartung
-
Fajar Priyanto
-
Joe Morris (NTM)
-
Teemu Nikkilä