You can disable specific types of USB devices by disabling their client driver. For example, USB printers can be disabled by disabling the usbprn driver that directs them. Disabling usbprn does not affect other kinds of devices, such as USB storage devices.
Be careful that device types are disabled on both frameworks. You cannot disable device types on one framework only. The following table identifies some USB device types and their corresponding drivers.
Device Type |
Driver to Disable |
---|---|
audio |
usb_ac and usb_as |
HID (usually keyboard and mouse |
hid |
storage |
scsa2usb |
printer |
usbprn |
serial |
usbser_edge |
If you disable a driver for a USB device that is still connected to the system, you will see a console message similar to the following:
usba10: WARNING: usba: no driver found for device name |