我有一个HP USB拇指驱动器。它工作正常,但在弹出错误后停止了。现在,当我插入它时,它被检测为打印机(据我所知)。
syslog
当我插入USB时,我会显示此信息。
Dec 15 09:10:44 namviper kernel: [ 797.472422] usb 3-3: new high-speed USB device number 10 using xhci_hcd
Dec 15 09:10:44 namviper kernel: [ 797.614558] usb 3-3: New USB device found, idVendor=03f0, idProduct=5a07
Dec 15 09:10:44 namviper kernel: [ 797.614562] usb 3-3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Dec 15 09:10:44 namviper kernel: [ 797.614565] usb 3-3: Product: v220w
Dec 15 09:10:44 namviper kernel: [ 797.614566] usb 3-3: Manufacturer: HP
Dec 15 09:10:44 namviper kernel: [ 797.614568] usb 3-3: SerialNumber: 0426400000006660
Dec 15 09:10:44 namviper kernel: [ 797.615308] usb-storage 3-3:1.0: USB Mass Storage device detected
Dec 15 09:10:44 namviper kernel: [ 797.615599] scsi host6: usb-storage 3-3:1.0
Dec 15 09:10:44 namviper root: loading HP Device 003 010
Dec 15 09:10:45 namviper python3: io/hpmud/musb.c 2183: [3413] hpmud_make_usb_uri() bus=003 dev=010
Dec 15 09:10:45 namviper python3: io/hpmud/musb.c 2281: hpmud_make_usb_uri() uri=hp:/usb/v220w?serial=SMART_INSTALL_ENABLED bytes_read=42
Dec 15 09:10:45 namviper /hp-config_usb_printer: hp-config_usb_printer[3413]: error: This is not a valid device
Dec 15 09:10:45 namviper colord[1002]: (colord:1002): Cd-WARNING **: CdMain: failed to emit DeviceAdded: failed to register object: An object is already exported for the interface org.freedesktop.ColorManager.Device at /org/freedesktop/ColorManager/devices/sysfs_HP_v220w
lsblk
不显示设备,并且Internet搜索错误仅显示打印机安装调试信息。
我想我需要告诉系统将其视为存储设备,但不确定如何。
这是我的uname -a
:
Linux namviper 4.10.0-42-generic #46~16.04.1-Ubuntu SMP Mon Dec 4 15:57:59 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
更新:根据KamilMaciorowski的回答,已经检测到正确的驱动程序:
$> cd "/sys/bus/usb/devices/3-3:1.0/"
$> readlink ./driver
../../../../../../bus/usb/drivers/usb-storage
现在,我需要知道如何处理此信息。
readlink ./driver
返回../../../../../../bus/usb/drivers/usb-storage