如何在 Linux 上获取损坏的 USB 驱动器的设备?

如何在 Linux 上获取损坏的 USB 驱动器的设备?

为了尝试挽救可能具有损坏的分配表的 USB 记忆棒,我想要获取该设备。

我在 VirtualBox 中使用 Ubuntu 10 作为客户机,主机:Win7。Windows 只是告诉我 USB 未格式化。

tail -f /var/log/messages我插入 USB 驱动器时,不会附加任何内容。 fdisk -l没有显示任何内容。

dmesg写出这个(略有缩短)。我不确定它是否提到了我的 USB 记忆棒。

[    3.863790] usb 2-1: configuration #1 chosen from 1 choice
[    4.128805] udev: starting version 151
[    5.486258] Intel(R) PRO/1000 Network Driver - version 7.3.21-k5-NAPI
[    5.486354] Copyright (c) 1999-2006 Intel Corporation.
[    5.486922] ahci 0000:00:0d.0: version 3.0
[    5.506298] ACPI: PCI Interrupt Link [LNKA] enabled at IRQ 5
[    5.506348] PCI: setting IRQ 5 as level-triggered
[    5.506396] ahci 0000:00:0d.0: PCI INT A -> Link[LNKA] -> GSI 5 (level, low) -> IRQ 5
[    5.506714] ahci: SSS flag set, parallel bus scan disabled
[    5.507173] ahci 0000:00:0d.0: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
[    5.507218] ahci 0000:00:0d.0: flags: 64bit ncq stag only ccc 
[    5.507299] ahci 0000:00:0d.0: setting latency timer to 64
[    5.559375] scsi2 : ahci
[    5.559617] ata3: SATA max UDMA/133 abar m8192@0xf0842000 port 0xf0842100 irq 5
[    5.587498] e1000 0000:00:03.0: PCI INT A -> Link[LNKC] -> GSI 10 (level, low) -> IRQ 10
[    5.588364] e1000 0000:00:03.0: setting latency timer to 64
[    6.301190] e1000: 0000:00:03.0: e1000_probe: (PCI:33MHz:32-bit) 08:00:27:8a:f3:ec
[    6.364441] e1000: eth0: e1000_probe: Intel(R) PRO/1000 Network Connection
[    6.369355] ACPI: PCI Interrupt Link [LNKD] enabled at IRQ 9
[    6.369437] PCI: setting IRQ 9 as level-triggered
[    6.369474] e1000 0000:00:08.0: PCI INT A -> Link[LNKD] -> GSI 9 (level, low) -> IRQ 9
[    6.369575] e1000 0000:00:08.0: setting latency timer to 64
[    7.127984] e1000: 0000:00:08.0: e1000_probe: (PCI:33MHz:32-bit) 08:00:27:ae:ac:59
[    7.129255] ata3: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    7.163686] ata3.00: ATA-6: VBOX HARDDISK, 1.0, max UDMA/133
[    7.163724] ata3.00: 16777216 sectors, multi 128: LBA48 NCQ (depth 31/32)
[    7.165107] ata3.00: configured for UDMA/133
[    7.171587] scsi 2:0:0:0: Direct-Access     ATA      VBOX HARDDISK    1.0  PQ: 0 ANSI: 5
[    7.174740] sd 2:0:0:0: Attached scsi generic sg1 type 0
[    7.197357] sd 2:0:0:0: [sda] 16777216 512-byte logical blocks: (8.58 GB/8.00 GiB)
[    7.204593] sd 2:0:0:0: [sda] Write Protect is off
[    7.204621] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    7.205256] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    7.218249] e1000: eth1: e1000_probe: Intel(R) PRO/1000 Network Connection
[    7.221165]  sda: sda1 sda2 < sda5 >
[    7.393432] sd 2:0:0:0: [sda] Attached SCSI disk
[    7.456709] usbcore: registered new interface driver hiddev
[    7.490268] input: VirtualBox USB Tablet as /devices/pci0000:00/0000:00:06.0/usb2/2-1/2-1:1.0/input/input4
[    7.491470] generic-usb 0003:80EE:0021.0001: input,hidraw0: USB HID v1.10 Mouse [VirtualBox USB Tablet] on usb-0000:00:06.0-1/input0
[    7.491643] usbcore: registered new interface driver usbhid
[    7.492742] usbhid: v2.6:USB HID core driver
[    8.703587] EXT4-fs (sda1): mounted filesystem with ordered data mode
[   26.040624] Adding 407544k swap on /dev/sda5.  Priority:-1 extents:1 across:407544k 
[   26.231877] udev: starting version 151

答案1

我不确定主机无法识别的 USB 驱动器是否可以被客户机检测到。我会采取安全措施,使用 Linux livecd 制作 USB 驱动器映像并尝试恢复数据。

答案2

这是你这里提到的 8GB USB 吗

[    7.174740] sd 2:0:0:0: Attached scsi generic sg1 type 0
[    7.197357] sd 2:0:0:0: [sda] 16777216 512-byte logical blocks: (8.58 GB/8.00 GiB)
[    7.204593] sd 2:0:0:0: [sda] Write Protect is off
[    7.204621] sd 2:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    7.205256] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA

不过,很有可能这是您的系统驱动器。

这个命令的输出是什么

ls -la /dev

我对 USB 和 VM 的结果不太确定,为了确保万无一失,我会在真实硬件上使用启动盘。

相关内容