我正在排除故障WDBU6Y0020BBK-0B我同事在 Ubuntu Linux 上安装了外部硬盘。它显示为 /dev/sg3,但没有 /dev/sdx 条目。我的问题类似于这个问题,但的输出lsscsi -l
不同。特别是我看到device_blocked=1
。由于这个原因,并且因为没有关于它是否有效的反馈,我犹豫是否尝试覆盖 MBR,如此回复。在这种情况下,驱动器上的数据会发生什么情况?
现在更详细地讲:
ls /dev/
插入驱动器后唯一的新设备是: sg3
。
产量sudo fdisk -l
保持不变。
sudo mount /dev/sg3 /mnt
给我:
mount: /mnt: /dev/sg3 ist kein blockorientiertes Gerät.
(翻译为:不是块设备)
sudo sg_map
给我:
/dev/sg0 /dev/sda
/dev/sg1 /dev/sdb
/dev/sg2 /dev/sr0
/dev/sg3
lsscsi -l
给我:
[0:0:0:0] disk ATA ST500LM021-1KJ15 LIM1 /dev/sda
state=running queue_depth=32 scsi_level=6 type=0 device_blocked=0 timeout=30
[1:0:0:0] disk ATA TS256GMTS430S T2DA /dev/sdb
state=running queue_depth=32 scsi_level=6 type=0 device_blocked=0 timeout=30
[2:0:0:0] cd/dvd MATSHITA DVD-RAM UJ8E2 1.00 /dev/sr0
state=running queue_depth=1 scsi_level=6 type=5 device_blocked=0 timeout=30
[6:0:0:0] disk WD Elements 25A2 1021 -
state=running queue_depth=1 scsi_level=7 type=0 device_blocked=1 timeout=30
在这里我们看到另一个问题1021
,我们在第五列有一个实际值( ),我们看到device_blocked=1
。在 Google 上搜索“lsscsi“device_blocked=1””的唯一结果是这,它描述了一个非常不同的问题,并且仍无定论。
相关部分sudo lsusb -v
:
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 3.10
bDeviceClass 0
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 9
idVendor 0x1058 Western Digital Technologies, Inc.
idProduct 0x25a2 Elements 25A2
bcdDevice 10.21
iManufacturer 1 Western Digital
iProduct 2 Elements 25A2
iSerial 3 575842314143373841414146
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 0x002c
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 896mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 15
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0400 1x 1024 bytes
bInterval 0
bMaxBurst 15
Binary Object Store Descriptor:
bLength 5
bDescriptorType 15
wTotalLength 0x0016
bNumDeviceCaps 2
USB 2.0 Extension Device Capability:
bLength 7
bDescriptorType 16
bDevCapabilityType 2
bmAttributes 0x00000f0e
BESL Link Power Management (LPM) Supported
BESL value 3840 us
SuperSpeed USB Device Capability:
bLength 10
bDescriptorType 16
bDevCapabilityType 3
bmAttributes 0x00
wSpeedsSupported 0x000e
Device can operate at Full Speed (12Mbps)
Device can operate at High Speed (480Mbps)
Device can operate at SuperSpeed (5Gbps)
bFunctionalitySupport 1
Lowest fully-functional device speed is Full Speed (12Mbps)
bU1DevExitLat 10 micro seconds
bU2DevExitLat 32 micro seconds
Device Status: 0x000c
(Bus Powered)
U1 Enabled
U2 Enabled
dmesg
连接驱动器后,出现以下信息:
[180282.463438] usb 4-5: new SuperSpeed USB device number 6 using xhci_hcd
[180282.484494] usb 4-5: New USB device found, idVendor=1058, idProduct=25a2, bcdDevice=10.21
[180282.484510] usb 4-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[180282.484517] usb 4-5: Product: Elements 25A2
[180282.484522] usb 4-5: Manufacturer: Western Digital
[180282.484526] usb 4-5: SerialNumber: 575842314143373841414146
[180282.486273] usb-storage 4-5:1.0: USB Mass Storage device detected
[180282.486630] scsi host6: usb-storage 4-5:1.0
[180283.515654] scsi 6:0:0:0: Direct-Access WD Elements 25A2 1021 PQ: 0 ANSI: 6
[180283.516233] sd 6:0:0:0: Attached scsi generic sg3 type 0
[180283.517152] sd 6:0:0:0: [sdc] Spinning up disk...
[180284.539232] ..not responding...
[180465.588148] sd 6:0:0:0: [sdc] tag#0 timing out command, waited 180s
[180645.590667] sd 6:0:0:0: [sdc] tag#0 timing out command, waited 180s
[180825.598223] sd 6:0:0:0: [sdc] tag#0 timing out command, waited 180s
[180825.598320] sd 6:0:0:0: [sdc] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
[180825.598333] sd 6:0:0:0: [sdc] Sense Key : Hardware Error [current]
[180825.598345] sd 6:0:0:0: [sdc] ASC=0x44 <<vendor>>ASCQ=0x81
[180825.598354] sd 6:0:0:0: [sdc] 0 512-byte logical blocks: (0 B/0 B)
[180825.598360] sd 6:0:0:0: [sdc] 0-byte physical blocks
[181005.606753] sd 6:0:0:0: [sdc] tag#0 timing out command, waited 180s
[181005.606847] sd 6:0:0:0: [sdc] Test WP failed, assume Write Enabled
[181185.619985] sd 6:0:0:0: [sdc] tag#0 timing out command, waited 180s
[181185.620008] sd 6:0:0:0: [sdc] Asking for cache data failed
[181185.620013] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[181185.620314] sd 6:0:0:0: [sdc] Attached SCSI disk
[181215.636217] sd 6:0:0:0: [sdc] tag#0 timing out command, waited 30s
我尝试了不同的 USB 电缆,结果相同。我没有打开设备,因为根据这个视频它似乎没有可以安装到另一个外壳中的标准 SATA 连接器。
我可以采取哪些进一步的步骤来修复驱动器并希望保留其中的数据?