User Tools

Site Tools


ubuntu:usb:usb_driver:usb_driver

Ubuntu - USB - USB driver

The usb-storage.ko is the USB Mass Storage driver for Linux.

ls -l /lib/modules/$(uname -r)/kernel/drivers/usb/storage/usb-storage.ko

All you have to do is disable or remove the usb-storage.ko driver to restrict to use USB devices on Linux such as:

  • USB keyboards
  • USB mice
  • USB pen drive
  • USB hard disk
  • Other USB block storage

Disable the usb_storage module

To disable:

sudo modprobe -r usb_storage

To enable:

sudo modprobe -i usb_storage

The easiest way to disable usb storage device in linux is create following file and add following line inside the file:

sudo touch /etc/modprobe.d/no-usb

and populate:

/etc/modprobe.d/no-usb
install usb-storage /bin/true

ubuntu/usb/usb_driver/usb_driver.txt · Last modified: 2020/07/15 09:30 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki