Linux Mint 无法正确识别 USB 记忆棒

Linux Mint 无法正确识别 USB 记忆棒

我的系统无法正确识别我的 USB 记忆棒(Linux Mint 18,内核版本 4.4.0-34-generic)。显示lsusb设备(即Kingston Technology DataTraveler G4):

Bus 002 Device 003: ID 062a:4102 Creative Labs 
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 04f2:b217 Chicony Electronics Co., Ltd Lenovo Integrated Camera (0.3MP)
Bus 001 Device 035: ID 0951:1666 Kingston Technology DataTraveler G4
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

sudo fdisk -l不显示我的设备。这就是为什么我无法获得 UUID 或类似的东西/dev/sdb1,因此我无法安装或格式化我的拇指驱动器。现在我正在寻找使拇指驱动器再次正常工作的想法。

我将拇指驱动器插入 USB 2 端口,因为我没有 USB 3 端口。拇指驱动器直接与我的笔记本电脑连接,并且它是唯一连接的设备。我经常尝试断开并重新连接拇指驱动器,但没有任何反应。

Gparted 无法识别 USB 记忆棒。驱动管理器中没有与“Kingston”相关的驱动。

这是 dmesg 的输出:http://pastebin.com/NR21FEWC

fdisk /dev/sg2给我这个输出:

Welcome to fdisk (util-linux 2.27.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

fdisk: cannot open /dev/sg2: No such file or directory

ls /dev/sd*给我这个输出:

/dev/sda  /dev/sda1  /dev/sda2  /dev/sda3  /dev/sda4

lsblk显示:

NAME     MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda        8:0    0 465,8G  0 disk  
├─sda1     8:1    0     1G  0 part  /boot
├─sda2     8:2    0    20G  0 part  
│ └─root 252:0    0    20G  0 crypt /
├─sda3     8:3    0    10G  0 part  
│ └─swap 252:1    0    10G  0 crypt [SWAP]
└─sda4     8:4    0 434,8G  0 part  
  └─home 252:2    0 434,8G  0 crypt /home
sr0       11:0    1  1024M  0 rom 

/sbin/blkid显示:

/dev/mapper/root: UUID="007efd79-966b-43bd-a5c5-d67f5d987624" TYPE="ext4"
/dev/mapper/swap: UUID="b4960aab-6cbb-4c46-b74d-ee4fa56d01fd" TYPE="swap"
/dev/sda1: LABEL="BOOT" UUID="128f7dc5-1961-457b-90ca-421fc7eb481f" TYPE="ext2" PARTUUID="1138e37e-01"
/dev/sda2: UUID="d68911dd-172a-4608-86d4-084eb72f409c" TYPE="crypto_LUKS" PARTUUID="1138e37e-02"
/dev/sda3: UUID="4800307a-714c-4aca-b5d1-6b9ccf8b467c" TYPE="crypto_LUKS" PARTUUID="1138e37e-03"
/dev/sda4: UUID="db432f20-3889-44c2-8e67-7271634788be" TYPE="crypto_LUKS" PARTUUID="1138e37e-04"

tree /sys/bus/hid显示:

/sys/bus/hid
├── devices
│   └── 0003:062A:4102.0001 -> ../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:062A:4102.0001
├── drivers
│   └── hid-generic
│       ├── 0003:062A:4102.0001 -> ../../../../devices/pci0000:00/0000:00:1d.0/usb2/2-1/2-1.1/2-1.1:1.0/0003:062A:4102.0001
│       ├── bind
│       ├── module -> ../../../../module/hid_generic
│       ├── new_id
│       ├── uevent
│       └── unbind
├── drivers_autoprobe
├── drivers_probe
└── uevent

6 directories, 7 files

这是以下的输出/sbin/udevadm monitor --property > thumbdrive.txthttp://pastebin.com/4SpYin45 或者 http://paste.debian.net/790206/

答案1

尝试在 /etc/udev/rules.d/ 下创建 UDEV 规则

因此,创建一个规则文件 /etc/udev/rules.d/test.rules 然后将其添加到其中:

ACTION=="add", ATTRS{idVendor}=="0951", ATTRS{idProduct}=="1666", SYMLINK+="Earls-Kingston-Thumbdrive"

通过运行重新启动 UDEVsudo /etc/init.d/udev restart

移除并插入拇指驱动器,现在您应该让 UDEV 检测并在 /dev/Earls-Kingston-Thumbdrive 下创建符号链接

相关内容