损坏的 U 盘不断消失,无法进行任何修复操作

损坏的 U 盘不断消失,无法进行任何修复操作

我正在尝试修复损坏的 USB 闪存盘。这是一个新的 USB 闪存盘,在同事尝试对其进行加密后,它就无法正常工作了。不幸的是,我不知道加密是如何被破坏的,但我认为重要数据(分区表或类似的东西)在这个过程中被破坏了。


当我插入它时,系统会找到它并显示在lsusb和的输出中lsblk

然而,当我随后尝试运行ddorbadblocksmkfs执行某些操作时,所有这些命令最终都会由于 I/O 错误而失败。发生这种情况时,随身碟也不会出现在lsusb或 的输出中lsblk。因此,我假设在此过程中操作系统以某种方式断开了随身碟的连接。

我可以做什么来保持连接?

dmesg有这样说:

330181.324715] usb 4-4.3: new SuperSpeed Gen 1 USB device number 4 using xhci_hcd
[2330181.352153] usb 4-4.3: New USB device found, idVendor=058f, idProduct=6387, bcdDevice= 0.02
[2330181.352157] usb 4-4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[2330181.352159] usb 4-4.3: Product: Intenso Speed Line  
[2330181.352161] usb 4-4.3: Manufacturer: ALCOR          
[2330181.352163] usb 4-4.3: SerialNumber: 09104353
[2330181.355880] usb-storage 4-4.3:1.0: USB Mass Storage device detected
[2330181.356110] scsi host9: usb-storage 4-4.3:1.0
[2330182.464306] scsi 9:0:0:0: Direct-Access     Intenso  Speed Line       8.01 PQ: 0 ANSI: 6
[2330182.464755] sd 9:0:0:0: Attached scsi generic sg7 type 0
[2330182.465486] sd 9:0:0:0: [sdg] 250183680 512-byte logical blocks: (128 GB/119 GiB)
[2330182.465705] sd 9:0:0:0: [sdg] Write Protect is off
[2330182.465709] sd 9:0:0:0: [sdg] Mode Sense: 23 00 00 00
[2330182.465901] sd 9:0:0:0: [sdg] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[2330182.487834] sd 9:0:0:0: [sdg] Attached SCSI removable disk
[2330219.614115] usb 4-4.3: Disable of device-initiated U1 failed.
[2330224.734155] usb 4-4.3: Disable of device-initiated U2 failed.
[2330229.854129] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330235.230139] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330235.438099] usb 4-4.3: device not accepting address 4, error -62
[2330240.862114] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330246.238112] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330246.446069] usb 4-4.3: device not accepting address 4, error -62
[2330251.870138] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330257.246135] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330257.454081] usb 4-4.3: device not accepting address 4, error -62
[2330262.878115] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330268.254073] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330268.462106] usb 4-4.3: device not accepting address 4, error -62
[2330268.462229] usb 4-4.3: USB disconnect, device number 4
[2330268.462238] sd 9:0:0:0: [sdg] tag#0 FAILED Result: hostbyte=DID_TIME_OUT driverbyte=DRIVER_OK
[2330268.462244] sd 9:0:0:0: [sdg] tag#0 CDB: Read(10) 28 00 0e e9 7f f9 00 00 01 00
[2330268.462248] blk_update_request: I/O error, dev sdg, sector 250183673 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[2330268.462344] sd 9:0:0:0: tag#0 timing out command, waited 60s
[2330268.462371] blk_update_request: I/O error, dev sdg, sector 250183672 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[2330268.462376] Buffer I/O error on dev sdg, logical block 31272959, async page read
[2330273.886115] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330279.262066] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330279.470087] usb 4-4.3: device not accepting address 5, error -62
[2330284.894048] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330290.270122] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330290.478027] usb 4-4.3: device not accepting address 6, error -62
[2330290.478068] usb 4-4-port3: attempt power cycle
[2330295.902131] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330301.278118] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330301.486104] usb 4-4.3: device not accepting address 7, error -62
[2330306.910107] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330312.286095] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[2330312.494098] usb 4-4.3: device not accepting address 8, error -62
[2330312.494184] usb 4-4-port3: unable to enumerate USB device

答案1

当我随后尝试运行ddor badblocksor mkfs[...] 时,这些命令最终由于 I/O 错误而失败。 [...]我假设在这个过程中操作系统以某种方式断开了随身碟的连接。 [...] 我该怎么做才能保持设备连接?

不要写它。您已经说过它已损坏,因此请尽您所能从中读取数据,但避免更多写入。如果设备上有写保护开关,请将其打开。

当您恢复了可以恢复的内容后,请物理销毁该设备(这样任何剩余数据都无法恢复)并更换它。

相关内容