我在使用通过 Discover 保持完全更新的 Kubuntu 20.04.02 LTS 访问两个较旧的 USB (2.x) 闪存驱动器(一个 SanDisk 128MB 驱动器和一个 Verbatim 2GB Store 'n' Go 驱动器)时遇到问题。我已将每个闪存驱动器插入同一个 USB 端口,然后依次为每个驱动器发出以下命令。
df -h
sudo parted -ls
sudo lsblk -f
sudo lsblk -m
ls -ld /media
ls -l /media
ls -l /media/$USER
结果如下所示。
对于 128 MB 驱动器,我们有:-
kub@kub-SATELLITE-L870-18V:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.8G 0 3.8G 0% /dev
tmpfs 785M 1.5M 783M 1% /run
/dev/sda9 152G 3.0G 141G 3% /
/dev/sda10 152G 21G 123G 15% /usr
tmpfs 3.9G 152K 3.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda1 446M 309M 103M 76% /boot
/dev/sda6 169M 332K 155M 1% /tmp
/dev/sda7 14G 2.6G 11G 20% /var
/dev/sda5 137G 46G 85G 35% /home
tmpfs 785M 12K 785M 1% /run/user/1000
kub@kub-SATELLITE-L870-18V:~$ sudo parted -ls
[sudo] password for kub:
Model: ATA ST9500325AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 500MB 499MB primary ext4 boot
2 501MB 500GB 500GB extended
6 501MB 700MB 199MB logical ext4
7 701MB 15.7GB 15.0GB logical ext4
8 15.7GB 17.7GB 2047MB logical linux-swap(v1)
9 17.7GB 184GB 166GB logical ext4
10 184GB 350GB 166GB logical ext4
5 350GB 500GB 150GB logical ext4
kub@kub-SATELLITE-L870-18V:~$ sudo lsblk -f
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 ext4 /boot d12eeea7-3bf7-4bab-874b-307afc53005d 102.9M 69% /boot
├─sda2
├─sda5 ext4 /home 05fc8b81-a330-4c74-91ed-77f37aa16a9c 84.5G 33% /home
├─sda6 ext4 /tmp f7cd437f-0a1f-4340-bf0f-4b96844b9686 154.4M 0% /tmp
├─sda7 ext4 /var da489418-829c-4450-84f4-6c878b20f6f2 10.4G 19% /var
├─sda8 swap swap 7cc86fae-5fec-413c-90df-ca2f9f95491c [SWAP]
├─sda9 ext4 / 56d7e93d-4217-41c3-82f3-f457af294496 140.6G 2% /
└─sda10 ext4 /usr fe345b5a-b2a0-47e3-a4b1-89d25492fb3d 122.6G 14% /usr
sr0
kub@kub-SATELLITE-L870-18V:~$ sudo lsblk -m
NAME SIZE OWNER GROUP MODE
sda 465.8G root disk brw-rw----
├─sda1 476M root disk brw-rw----
├─sda2 1K root disk brw-rw----
├─sda5 139.8G root disk brw-rw----
├─sda6 190M root disk brw-rw----
├─sda7 14G root disk brw-rw----
├─sda8 1.9G root disk brw-rw----
├─sda9 154.7G root disk brw-rw----
└─sda10 154.7G root disk brw-rw----
sr0 1024M root cdrom brw-rw----
kub@kub-SATELLITE-L870-18V:~$ ls -ld /media
drwxr-xr-x 11 root root 4096 Apr 17 12:32 /media
kub@kub-SATELLITE-L870-18V:~$ ls -l /media
total 36
drwxr-x---+ 2 kub kub 4096 Aug 19 09:56 kub
lrwxrwxrwx 1 root root 4 Apr 17 12:32 usb -> usb0
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb0
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb1
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb2
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb3
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb4
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb5
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb6
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb7
kub@kub-SATELLITE-L870-18V:~$ ls -l /media/$USER
total 0
kub@kub-SATELLITE-L870
对于 2 GB 的驱动器,我们有:-
kub@kub-SATELLITE-L870-18V:~$ df -h
Filesystem Size Used Avail Use% Mounted on
udev 3.8G 0 3.8G 0% /dev
tmpfs 785M 1.5M 783M 1% /run
/dev/sda9 152G 3.0G 141G 3% /
/dev/sda10 152G 21G 123G 15% /usr
tmpfs 3.9G 152K 3.9G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup
/dev/sda1 446M 309M 103M 76% /boot
/dev/sda6 169M 332K 155M 1% /tmp
/dev/sda7 14G 2.6G 11G 20% /var
/dev/sda5 137G 46G 85G 35% /home
tmpfs 785M 12K 785M 1% /run/user/1000
kub@kub-SATELLITE-L870-18V:~$ sudo parted -ls
Model: ATA ST9500325AS (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 500MB 499MB primary ext4 boot
2 501MB 500GB 500GB extended
6 501MB 700MB 199MB logical ext4
7 701MB 15.7GB 15.0GB logical ext4
8 15.7GB 17.7GB 2047MB logical linux-swap(v1)
9 17.7GB 184GB 166GB logical ext4
10 184GB 350GB 166GB logical ext4
5 350GB 500GB 150GB logical ext4
Error: /dev/sdc: unrecognised disk label
Model: Verbatim Store 'n' Go (scsi)
Disk /dev/sdc: 1011MB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:
kub@kub-SATELLITE-L870-18V:~$ sudo lsblk -f
NAME FSTYPE LABEL UUID FSAVAIL FSUSE% MOUNTPOINT
sda
├─sda1 ext4 /boot d12eeea7-3bf7-4bab-874b-307afc53005d 102.9M 69% /boot
├─sda2
├─sda5 ext4 /home 05fc8b81-a330-4c74-91ed-77f37aa16a9c 84.5G 33% /home
├─sda6 ext4 /tmp f7cd437f-0a1f-4340-bf0f-4b96844b9686 154.4M 0% /tmp
├─sda7 ext4 /var da489418-829c-4450-84f4-6c878b20f6f2 10.4G 19% /var
├─sda8 swap swap 7cc86fae-5fec-413c-90df-ca2f9f95491c [SWAP]
├─sda9 ext4 / 56d7e93d-4217-41c3-82f3-f457af294496 140.6G 2% /
└─sda10 ext4 /usr fe345b5a-b2a0-47e3-a4b1-89d25492fb3d 122.6G 14% /usr
sdc
sr0
kub@kub-SATELLITE-L870-18V:~$ sudo lsblk -m
NAME SIZE OWNER GROUP MODE
sda 465.8G root disk brw-rw----
├─sda1 476M root disk brw-rw----
├─sda2 1K root disk brw-rw----
├─sda5 139.8G root disk brw-rw----
├─sda6 190M root disk brw-rw----
├─sda7 14G root disk brw-rw----
├─sda8 1.9G root disk brw-rw----
├─sda9 154.7G root disk brw-rw----
└─sda10 154.7G root disk brw-rw----
sdc 964M root disk brw-rw----
sr0 1024M root cdrom brw-rw----
kub@kub-SATELLITE-L870-18V:~$ ls -ld /media
drwxr-xr-x 11 root root 4096 Apr 17 12:32 /media
kub@kub-SATELLITE-L870-18V:~$ ls -l /media
total 36
drwxr-x---+ 2 kub kub 4096 Aug 19 09:56 kub
lrwxrwxrwx 1 root root 4 Apr 17 12:32 usb -> usb0
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb0
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb1
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb2
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb3
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb4
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb5
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb6
drwxr-xr-x 2 root root 4096 Apr 17 12:32 usb7
kub@kub-SATELLITE-L870-18V:~$ ls -l /media/$USER
total 0
kub@kub-SATELLITE-L870-18V:~$
两种设备均不会自动安装或显示在 Dolphin 中。
我访问过 Ours Technology Inc 和 Trek2000(根据维基百科,以前称为 Trek Technology PTE LTD)的网站,发现它们都不支持这两款旧设备。
补充:我已尝试在同一个 USB 端口中使用另外两个 USB 闪存驱动器,并且这两个设备均自动挂载并显示在 Dolphin 中。
有什么方法可以让我再次访问这些设备吗?
此致,
斯图尔特
答案1
我们可以看到,您的输出中没有安装任何设备。
这意味着首先,我们必须尝试手动检测设备。将它们从主机上拔下,然后按照以下步骤操作:
- 运行
lsusb
并记录当前设备列表。 - 插入一个设备,然后
lsusb
再次运行以查看有什么变化。 - 手动安装检测到的设备:
sudo mount /dev/whatever /wherever/you/want
- 插入下一个设备,然后
lsusb
再次运行,同时注意这个新设备。 - 手动挂载第二个设备:
sudo mount /dev/whatever2 /wherever2
答案2
非常感谢大家的回复。
@Nmath:我在本地图书馆中使用了 Windows 10 PC,其中 Windows 资源管理器可以访问两个闪存驱动器,但只能以非常有限的方式访问。对于 128 MB 驱动器,驱动器被识别并显示为驱动器,因此我能够发现只使用了 27 MB,尽管单击驱动器图标时既没有显示文件夹也没有显示单个文件。对于 1 GB 驱动器,这再次显示为 Windows 资源管理器中的图标。在这种情况下,驱动器图标没有显示驱动器容量的使用量,单击驱动器图标时也没有显示驱动器上的文件夹和文件的图标。
我现在已经安装了 Gnome 磁盘实用程序,它报告以下内容。
当 128 MB 驱动器连接到 USB 端口时,该实用程序:-
a) recognises when the drive is connected;
b) places an icon for it in its left hand pane labelled Drive, sub-labelled USB Flash Disk;
c) correctly reports the Model as USB Flash Disk (2.00);
d) Media and Size are blank, just two "-"s for each entry;
e) the serial number is reported as USB Flash Disk (2.00);
f) Volumes is just a single blue block labelled No Media;
g) again Size is listed as ust two "-"s;
h) Device is reported as /dev/sdc;
i) Contents is again listed as ust two "-"s.
这个旧闪存驱动器没有“我已开启”LED。当闪存驱动器断开连接时,实用程序会从其左侧窗格中删除它的图标。
当 1 GB 驱动器连接到同一个 USB 端口时,该实用程序:-
a) recognises when the drive is connected;
b) places an icon for it in its left hand pane labelled 1.0 GB Drive, sub-labeeled Verbatim Store 'n' Go;
c) correctly reports the Model as Verbatim Store 'n' Go (1.00);
d) Size is reported as 1.0 GB (1,010,826,752 bytes);
e) the field labeeled Media does not appear;
f) an alphanumeric serial number is reported;
g) Volumes is just a single blue block labelled 1.0 GB Unknown;
h) Size is again reported as 1.0 GB (1,010,826,752 bytes);
h) Device is reported as /dev/sdc;
i) Contents is reported as Unknown.
这个旧闪存驱动器确实有一个“我已打开”LED,插入后会立即闪烁两次,然后保持不闪烁状态。当闪存驱动器断开连接时,实用程序会从其左侧窗格中删除它的图标。
@James S: 使用我们有的 lsusb 命令,对于 128 MB 驱动器:-
kub@kub-SATELLITE-L870-18V:~$ lsusb
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 04f3:0103 Elan Microelectronics Corp. ActiveJet K-2024 Multimedia Keyboard
Bus 001 Device 003: ID 0bda:0138 Realtek Semiconductor Corp. RTS5138 Card Reader Controller
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
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0930:0219 Toshiba Corp. Bluetooth USB Host Controller
Bus 003 Device 002: ID 89e5:1001 USB OPTICAL MOUSE
Bus 003 Device 013: ID 0ea0:2168 Ours Technology, Inc. Transcend JetFlash 2.0 / Astone USB Drive / Intellegent Stick 2.0
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
kub@kub-SATELLITE-L870-18V:~$
对于 1 GB 的潜水:-
kub@kub-SATELLITE-L870-18V:~$ lsusb
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 04f3:0103 Elan Microelectronics Corp. ActiveJet K-2024 Multimedia Keyboard
Bus 001 Device 003: ID 0bda:0138 Realtek Semiconductor Corp. RTS5138 Card Reader Controller
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
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 005: ID 0930:0219 Toshiba Corp. Bluetooth USB Host Controller
Bus 003 Device 002: ID 89e5:1001 USB OPTICAL MOUSE
Bus 003 Device 014: ID 0a16:2004 Trek Technology (S) PTE, Ltd Store 'n' Go
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
kub@kub-SATELLITE-L870-18V:~$
补充:我一直将 1 GB 驱动器报告为 2 GB。对于我造成的混淆,请接受我的道歉。
@sudodus:我尝试手动将每个闪存驱动器依次安装到我的电脑上的同一个 USB 端口,并收到以下系统响应。
对于 128 MB 驱动器:-
kub@kub-SATELLITE-L870-18V:~$ sudo mount /dev/sdc /media/usb
mount: /media/usb0: no medium found on /dev/sdc.
kub@kub-SATELLITE-L870-18V:~$
对于 1GB 驱动器:-
kub@kub-SATELLITE-L870-18V:~$ sudo mount /dev/sdc /media/usb
mount: /media/usb0: wrong fs type, bad option, bad superblock on /dev/sdc, missing codepage or helper program, or other error.
kub@kub-SATELLITE-L870-18V:~$
我想我读到过,如果尝试恢复,命令或恢复实用程序会删除/重新格式化前 1 MB。这会丢失很多(小)文件。
从上述情况来看,似乎两个驱动器都可以恢复,但代价是丢失文件。
我现在将使用 sudodus 提供的链接中的信息继续调查。此后,我将再次发布,除非我刚刚提供的信息告诉您驱动器实际上无法恢复。
此致,
斯图尔特