设备 sdb 上的缓冲区 I/O 错误,无法读取分区表

设备 sdb 上的缓冲区 I/O 错误,无法读取分区表

我的 USB 闪存驱动器在一台自助照片打印机上使用后就无法使用了。当我滚动浏览闪存驱动器上的照片并想更改文件的查看顺序时,该机器上的软件崩溃了。崩溃后,我无法从闪存驱动器读取任何内容。

将驱动器插入我的Ubuntu 18.04.3 LTS并查看/var/log/syslog,我看到以下(相关)错误消息:

kernel: [2661765.200803] usb-storage 4-1:1.0: USB Mass Storage device detected
kernel: [2661765.201724] scsi host6: usb-storage 4-1:1.0
mtp-probe: checking bus 4, device 9: "/sys/devices/pci0000:00/0000:00:14.0/usb4/4-1"
mtp-probe: bus: 4, device: 9 was not an MTP device
upowerd[2591]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb4/4-1/4-1:1.0
upowerd[2591]: unhandled action 'bind' on /sys/devices/pci0000:00/0000:00:14.0/usb4/4-1
org.xfce.FileManager[2344]: thunar-volman: Unsupported USB device type "usb".
org.xfce.FileManager[2344]: thunar-volman: Unsupported USB device type "usb-storage".
kernel: [2661766.632180] scsi 6:0:0:0: Direct-Access     JetFlash Transcend 64GB   1100 PQ: 0 ANSI: 6
kernel: [2661766.632813] sd 6:0:0:0: Attached scsi generic sg2 type 0
kernel: [2661766.634459] sd 6:0:0:0: [sdb] 123404288 512-byte logical blocks: (63.2 GB/58.8 GiB)
kernel: [2661766.635203] sd 6:0:0:0: [sdb] Write Protect is off
kernel: [2661766.635205] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
kernel: [2661766.636058] sd 6:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
kernel: [2661766.640941] scsi_io_completion: 4 callbacks suppressed
kernel: [2661766.640944] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
kernel: [2661766.640947] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] 
kernel: [2661766.640949] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Medium not present
kernel: [2661766.640952] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00
kernel: [2661766.640953] print_req_error: 4 callbacks suppressed

闪存驱动器似乎被识别,尽管大小错误,但它有 128 GB。

然而,在收到这些消息之后,Buffer I/O出现了错误:

kernel: [2661766.640954] print_req_error: I/O error, dev sdb, sector 0
kernel: [2661766.640957] buffer_io_error: 3 callbacks suppressed
kernel: [2661766.640958] Buffer I/O error on dev sdb, logical block 0, async page read
kernel: [2661766.641870] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
kernel: [2661766.641873] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] 
kernel: [2661766.641875] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Medium not present
kernel: [2661766.641877] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00

以下部分重复了8次:

kernel: [2661766.641878] print_req_error: I/O error, dev sdb, sector 0
kernel: [2661766.641881] Buffer I/O error on dev sdb, logical block 0, async page read
kernel: [2661766.642774] sd 6:0:0:0: [sdb] tag#0 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
kernel: [2661766.642776] sd 6:0:0:0: [sdb] tag#0 Sense Key : Not Ready [current] 
kernel: [2661766.642777] sd 6:0:0:0: [sdb] tag#0 Add. Sense: Medium not present
kernel: [2661766.642778] sd 6:0:0:0: [sdb] tag#0 CDB: Read(10) 28 00 00 00 00 00 00 00 08 00

最后部分如下:

kernel: [2661766.649002] print_req_error: I/O error, dev sdb, sector 24
kernel: [2661766.649004] Buffer I/O error on dev sdb, logical block 3, async page read
kernel: [2661766.650832]  sdb: unable to read partition table
kernel: [2661766.653438] sd 6:0:0:0: [sdb] Attached SCSI removable disk
org.xfce.FileManager[2344]: thunar-volman: Unknown block device type "disk".
colord-sane: io/hpmud/pp.c 627: unable to read device-id ret=-1

我担心这个unable to read partition table部分,但这可能与有关Buffer I/O

我不知道如何恢复我的闪存驱动器,因为# smartctl -a /dev/sdb结果只有

/dev/sdb: Unknown USB bridge [0x8564:0x1000 (0x1100)]
Please specify device type with the -d option.

手动设置类型将# smartctl -d scsi -a /dev/sdb产生以下输出(删除本地时间和序列号,因为它们不重要)

=== START OF INFORMATION SECTION ===
Vendor:               JetFlash
Product:              Transcend 64GB
Revision:             1100
Compliance:           SPC-4
User Capacity:        63.182.995.456 bytes [63,1 GB]
Logical block size:   512 bytes
LU is fully provisioned
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
Logical Unit id:      0x00010200000608040x2020030102060804error: SCSI name string
Device type:          disk
scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
SMART support is:     Available - device has SMART capability.
SMART support is:     Disabled
Temperature Warning:  Disabled or Not Supported

=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature:     0 C
Drive Trip Temperature:        0 C

Error Counter logging not supported

scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0
Device does not support Self Test logging

再次,尺寸错误。

非常感谢任何有关如何尝试访问我的闪存驱动器的建议!

相关内容