我将外部硬盘连接到我的机器。它被识别但无法打开。我运行dmesg
命令,结果如下:
[ 571.197590] usb 2-7: New USB device found, idVendor=0bc2, idProduct=231a
[ 571.197595] usb 2-7: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 571.197598] usb 2-7: Product: Expansion
[ 571.197602] usb 2-7: Manufacturer: Seagate
[ 571.197604] usb 2-7: SerialNumber: NA8G0H3A
[ 571.204442] scsi host2: uas
[ 571.205361] scsi 2:0:0:0: Direct-Access Seagate Expansion 0707 PQ: 0 ANSI: 6
[ 571.206683] sd 2:0:0:0: Attached scsi generic sg2 type 0
[ 574.382577] sd 2:0:0:0: [sdc] 1953525167 512-byte logical blocks: (1.00 TB/932 GiB)
[ 574.382582] sd 2:0:0:0: [sdc] 4096-byte physical blocks
[ 574.382729] sd 2:0:0:0: [sdc] Write Protect is off
[ 574.382733] sd 2:0:0:0: [sdc] Mode Sense: 53 00 00 08
[ 574.383038] sd 2:0:0:0: [sdc] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 574.383309] sd 2:0:0:0: [sdc] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[ 574.416860] sdc: sdc1
[ 574.418657] sd 2:0:0:0: [sdc] Attached SCSI disk
[ 609.286301] audit: type=1400 audit(1592360174.948:90): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/etc/krb5.conf.d/" pid=1347 comm="sssd_be" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 617.314396] audit: type=1400 audit(1592360182.982:91): apparmor="ALLOWED" operation="open" profile="/usr/sbin/sssd" name="/etc/krb5.conf.d/" pid=1347 comm="sssd_be" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 752.033073] sd 2:0:0:0: [sdc] tag#0 uas_zap_pending 0 uas-tag 1 inflight: CMD
[ 752.033081] sd 2:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 74 70 59 00 00 00 08 00
[ 752.033089] sd 2:0:0:0: tag#1 uas_zap_pending 0 uas-tag 2 inflight: CMD
[ 752.033093] sd 2:0:0:0: tag#1 CDB: Test Unit Ready 00 00 00 00 00 00
[ 752.033138] sd 2:0:0:0: [sdc] tag#0 FAILED Result: hostbyte=DID_NO_CONNECT driverbyte=DRIVER_OK
[ 752.033142] sd 2:0:0:0: [sdc] tag#0 CDB: Read(10) 28 00 74 70 59 00 00 00 08 00
[ 752.033146] print_req_error: I/O error, dev sdc, sector 1953519872
[ 752.038845] sd 2:0:0:0: [sdc] Synchronizing SCSI cache
[ 752.308013] sd 2:0:0:0: [sdc] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 752.412150] usb 2-7: USB disconnect, device number 7
我也尝试了以下命令:sudo mount /dev/sda1 /mnt
$MFTMirr 与 $MFT (记录 0) 不匹配。 无法挂载‘/dev/sda1’:输入/输出错误 NTFS 不一致,或者存在硬件故障,或者 SoftRAID/FakeRAID 硬件。第一种情况下,在 Windows 上运行 chkdsk /f 然后重新启动进入 Windows 两次。/f 参数的使用非常 重要!如果设备是 SoftRAID/FakeRAID,则首先激活 并在 /dev/mapper/ 目录下安装不同的设备(例如 /dev/mapper/nvidia_eahaabcc1)。请参阅“dmraid”文档 更多细节。
我也尝试运行这个命令lsusb -t
:
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/10p, 10000M
|__ Port 6: Dev 11, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/16p, 480M
|__ Port 2: Dev 7, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 2: Dev 7, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M
|__ Port 4: Dev 3, If 0, Class=Human Interface Device, Driver=usbhid, 12M
|__ Port 7: Dev 4, If 0, Class=Video, Driver=uvcvideo, 480M
|__ Port 7: Dev 4, If 1, Class=Video, Driver=uvcvideo, 480M
|__ Port 14: Dev 5, If 0, Class=Wireless, Driver=btusb, 12M
|__ Port 14: Dev 5, If 1, Class=Wireless, Driver=btusb, 12M
此外,[sdc]
我还发现[sda]
看起来还不错。这是[sdc]
什么[sda]
?
有人能帮忙吗?谢谢
答案1
您也在 Windows 上使用这个驱动器吗?您是否尝试过命令输出给出的建议:mount
?
In the first case run chkdsk /f on Windows then reboot into Windows twice.
答案2
您需要uas
将此设备列入黑名单。要检查您usb-storage
是否有内核模块,请发出以下命令:lsmod | grep usb-storage
,如果它输出某些内容,则表示您已加载该模块。
- 模块已加载
将模块列入您的设备的黑名单并重新启动:
$ echo options usb-storage quirks=0bc2:231a:u | sudo tee /etc/modprobe.d/blacklist-uas.conf
$ sudo update-initramfs -u
$ sudo reboot
- usb-storage 内置于内核
请参阅此 UNIX stackexchange回答。
您需要更改启动选项,这取决于您的启动加载程序,ARM 内核有时内置有 usb-storage。在这种情况下,您需要更改内核命令行,例如/boot/armbianEnv.txt
。
该文件可能已经有一个usbstoragequirks
条目,在这种情况下,您只需将其附加,<vendor_id>:<device_id>:u
到列表中:
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u,0bc2:231a:u
如果没有,请确保有一个rootfstype=<some_fs>
,例如,rootfstype=ext4
并将其附加到新行上:
usbstoragequirks=0bc2:231a:u
来自 UNIX stackexchange 答案的示例文件:
verbosity=1
console=both
overlay_prefix=sun50i-h5
overlays=usbhost1 usbhost2
rootdev=UUID=b58048d3-ca7b-4ea6-9812-95d403fddadd
rootfstype=ext4
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u