ubuntu:usb:usb_driver:usb_driver
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
ubuntu:usb:usb_driver:usb_driver [2020/03/20 12:48] – peter | ubuntu:usb:usb_driver:usb_driver [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 14: | Line 14: | ||
* USB hard disk | * USB hard disk | ||
* Other USB block storage | * Other USB block storage | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ===== Disable the usb_storage module ===== | ||
+ | |||
+ | To disable: | ||
+ | |||
+ | <code bash> | ||
+ | sudo modprobe -r usb_storage | ||
+ | </ | ||
+ | |||
+ | To enable: | ||
+ | |||
+ | <code bash> | ||
+ | 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: | ||
+ | |||
+ | <code bash> | ||
+ | sudo touch / | ||
+ | </ | ||
+ | |||
+ | and populate: | ||
+ | |||
+ | <file bash / | ||
+ | install usb-storage /bin/true | ||
+ | </ | ||
+ | |||
+ | ---- | ||
ubuntu/usb/usb_driver/usb_driver.1584708531.txt.gz · Last modified: 2020/07/15 09:30 (external edit)