如何在Linux Mint上禁用USB设备?

时间:2018-01-04 09:58:00

标签: linux usb-drive

我有连续的日志消息:

 usb-storage 2-1.5:1.0: USB Mass Storage device detected
 usb-storage 2-1.5:1.0: Quirks match for vid 05e3 pid 0723: 8000
 scsi host25: usb-storage 2-1.5:1.0
 usb 2-1.5: USB disconnect, device number 49
 usb 2-1.5: new high-speed USB device number 50 using ehci-pci
 usb 2-1.5: new high-speed USB device number 53 using ehci-pci
 usb 2-1.5: new high-speed USB device number 54 using ehci-pci
 usb 2-1.5: new high-speed USB device number 57 using ehci-pci
 usb 2-1.5: New USB device found, idVendor=05e3, idProduct=0723
 usb 2-1.5: New USB device strings: Mfr=3, Product=4, SerialNumber=2
 usb 2-1.5: Product: USB Storage
 usb 2-1.5: Manufacturer: Generic
 usb 2-1.5: SerialNumber: 000000009451
 usb-storage 2-1.5:1.0: USB Mass Storage device detected
 usb-storage 2-1.5:1.0: Quirks match for vid 05e3 pid 0723: 8000
 scsi host26: usb-storage 2-1.5:1.0
 scsi 26:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
 sd 26:0:0:0: Attached scsi generic sg2 type 0
 sd 26:0:0:0: [sdc] Attached SCSI removable disk
 usb 2-1.5: USB disconnect, device number 57
 usb 2-1.5: new high-speed USB device number 58 using ehci-pci
 usb 2-1.5: New USB device found, idVendor=05e3, idProduct=0723
 usb 2-1.5: New USB device strings: Mfr=3, Product=4, SerialNumber=2
 usb 2-1.5: Product: USB Storage
 usb 2-1.5: Manufacturer: Generic
 usb 2-1.5: SerialNumber: 000000009451
 usb-storage 2-1.5:1.0: USB Mass Storage device detected
 usb-storage 2-1.5:1.0: Quirks match for vid 05e3 pid 0723: 8000
 scsi host27: usb-storage 2-1.5:1.0
 scsi 27:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
 sd 27:0:0:0: Attached scsi generic sg2 type 0
 sd 27:0:0:0: [sdc] Attached SCSI removable disk

这会因插入/拔出设备的声音而打扰我,即使声音静音(我设置0%音量,任务栏中的声音图标显示为灰色)

如何防止这种情况?

1 个答案:

答案 0 :(得分:-1)

这个命令似乎对我有帮助:

echo "2-1.5:1.0" > /sys/bus/usb/drivers/usb-storage/2-1.5:1.0/driver/unbind