USB驱动器出现在lsusb中,但不在fdisk中

时间:2023-01-26 21:42:59

I've recently spun up a Ubuntu box (running 12.04, kernel 3.8.0-44-gen), and am having difficulty connecting any USB/flash/pen drives to it. It shows up when I run lsusb:

最近我把一个Ubuntu的盒子(运行12.04,内核3.8.0-44-gen)旋转起来,并且很难连接任何USB/闪存/笔驱动器。当我运行lsusb时,它出现了:

Bus 002 Device 012: ID 0781:5202 SanDisk Corp. 

But no new device is found when I run fdisk:

但是当我运行fdisk时没有发现任何新设备:

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   233381887   116689920   83  Linux
/dev/sda2       233383934   250068991     8342529    5  Extended
/dev/sda5       233383936   250068991     8342528   82  Linux swap / Solaris

Everything I've read says it should show up as a new device similar to /dev/sdb, but it does not, lsblk returns similar results. I also don't see any obvious errors in the output to dmesg:

我读到的每一篇文章都说它应该作为一个类似于/dev/sdb的新设备出现,但是它没有,lsblk会返回类似的结果。我也没有在dmesg的输出中看到任何明显的错误:

[18224.059027] usb 2-1.7: USB disconnect, device number 12
[18228.085986] usb 2-1.7: new high-speed USB device number 13 using ehci-pci
[18228.178716] usb 2-1.7: New USB device found, idVendor=0781, idProduct=5202
[18228.178721] usb 2-1.7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[18228.178724] usb 2-1.7: Product: Relay UFD
[18228.178727] usb 2-1.7: Manufacturer: *********
[18228.178729] usb 2-1.7: SerialNumber: ***********************

At this point I'm guessing there's an error being thrown somewhere, but have no idea where to look.

此时,我猜想有一个错误被抛出了某个地方,但不知道该往哪里看。

Any help will be met with adoration, maybe even a little worship.

任何帮助都会得到崇拜,甚至是一点崇拜。

1 个解决方案

#1


0  

Looks like fdisk is working with the wrong device (sda), this link how-to-determine-which-sd-is-usb has nice explanations on how to find the device name of a usb drive (this could work also "ls -l /dev/disk/by-id/usb* | grep sd."). When you have the correct device run fdisk again with it.

看起来fdisk正在使用错误的设备(sda),这个如何确定wi - fi - fi -is-usb的链接对如何查找usb驱动器的设备名称有很好的解释(这也可以用于“ls -l /dev/ disk/id/usb* | grep sd)”)。当你有了正确的设备,再用它运行fdisk。

#1


0  

Looks like fdisk is working with the wrong device (sda), this link how-to-determine-which-sd-is-usb has nice explanations on how to find the device name of a usb drive (this could work also "ls -l /dev/disk/by-id/usb* | grep sd."). When you have the correct device run fdisk again with it.

看起来fdisk正在使用错误的设备(sda),这个如何确定wi - fi - fi -is-usb的链接对如何查找usb驱动器的设备名称有很好的解释(这也可以用于“ls -l /dev/ disk/id/usb* | grep sd)”)。当你有了正确的设备,再用它运行fdisk。