Ubuntu 14.04 无法识别 USB 驱动器

Ubuntu 14.04 无法识别 USB 驱动器

我有一个 16GB Hama USB 棒,我在 Ubuntu 14.04 上使用它。直到昨天它都运行良好,但我的 Linux 崩溃了,我不得不使用低图形界面复制一些文件。无论如何,文件被复制了,我重新安装了系统,但现在我看不到我的驱动器了。任何其他驱动器都可以工作。

这就是我得到的dmesg | grep -i usb

[ 3028.034004] usb 2-1.6: reset high-speed USB device number 6 using ehci-pci
[ 3038.195532] usb 2-1.6: reset high-speed USB device number 6 using ehci-pci
[ 3054.355731] usb 2-1.6: reset high-speed USB device number 6 using ehci-pci
[ 3054.523730] usb 2-1.6: reset high-speed USB device number 6 using ehci-pci
[ 3064.685451] usb 2-1.6: reset high-speed USB device number 6 using ehci-pci
[ 3522.645454] usb 2-1.6: USB disconnect, device number 6
[ 3542.867682] usb 2-1.6: new high-speed USB device number 7 using ehci-pci
[ 3542.960989] usb 2-1.6: New USB device found, idVendor=058f, idProduct=6366
[ 3542.960994] usb 2-1.6: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 3542.960998] usb 2-1.6: Product: Flash Card Reader/Writer
[ 3542.961000] usb 2-1.6: Manufacturer: Generic
[ 3542.961002] usb 2-1.6: SerialNumber: 058F63666438
[ 3542.961388] usb-storage 2-1.6:1.0: USB Mass Storage device detected
[ 3542.962447] scsi10 : usb-storage 2-1.6:1.0
[ 3574.943893] usb 2-1.6: reset high-speed USB device number 7 using ehci-pci
[ 3585.105482] usb 2-1.6: reset high-speed USB device number 7 using ehci-pci
[ 3601.265555] usb 2-1.6: reset high-speed USB device number 7 using ehci-pci
[ 3601.433364] usb 2-1.6: reset high-speed USB device number 7 using ehci-pci
[ 3611.594898] usb 2-1.6: reset high-speed USB device number 7 using ehci-pci

这就是我得到的lsusb

Bus 002 Device 007: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 004: ID 0461:4d51 Primax Electronics, Ltd 0Y357C PMX-MMOCZUL (B) [Dell Laser Mouse]
Bus 001 Device 005: ID 413c:2110 Dell Computer Corp. 
Bus 001 Device 003: ID 413c:1010 Dell Computer Corp. 
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

这就是我得到的lsblk

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 232.9G  0 disk 
├─sda1   8:1    0   229G  0 part /
├─sda2   8:2    0     1K  0 part 
└─sda5   8:5    0   3.9G  0 part [SWAP]

结果sudo fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00042ebd

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048   480237567   240117760   83  Linux
/dev/sda2       480239614   488396799     4078593    5  Extended
/dev/sda5       480239616   488396799     4078592   82  Linux swap / Solaris

你知道我的驱动器出了什么问题吗?

答案1

由于您的 U 盘在“磁盘工具”中可见,并且

mount /dev/sdb /mnt

命令返回

mount: /dev/sdb is not a valid block device

因此,您的操作系统可以检测到该 U 盘。

现在,打开终端(++ Ctrl)并输入命令:AltT

sudo su

获取root权限。

接下来输入:

mkfs.xfs /dev/sdb1 && mount /dev/sdb1 /mnt -t auto

这一定能解决问题。但如果没有,请在下面评论。谢谢!

答案2

确保使用DD正确的设备,而不是将实际系统归零

使用以下方法彻底清零你的 USB 设备

dd if=/dev/zero of=/dev/sdX bs=4M

然后使用您选择的磁盘实用程序创建一个分区(fdisk /dev/sdb

然后格式化分区

mkfs.vfat /dev/sdb1

相关内容