我的硬盘坏了吗?

我的硬盘坏了吗?

我有一个外部 USB 硬盘,我认为它坏了。当我插入它时什么也没发生。我们可以确认它坏了吗?这是 dmesg 输出:

[ 7998.225453] usb 2-1.2: USB disconnect, device number 10
[ 8013.506794] usb 2-1.2: new high-speed USB device number 11 using ehci_hcd
[ 8013.600080] usb 2-1.2: New USB device found, idVendor=059f, idProduct=102a
[ 8013.600092] usb 2-1.2: New USB device strings: Mfr=10, Product=11, SerialNumber=5
[ 8013.600099] usb 2-1.2: Product: LaCie Device
[ 8013.600104] usb 2-1.2: Manufacturer: LaCie
[ 8013.600109] usb 2-1.2: SerialNumber: 6E16FFFFFFFF
[ 8013.601756] scsi7 : usb-storage 2-1.2:1.0
[ 8016.628008] scsi 7:0:0:0: Direct-Access     ST950032 5AS                   PQ: 0 ANSI: 2 CCS
[ 8016.630465] sd 7:0:0:0: Attached scsi generic sg2 type 0
[ 8043.122441] not responding...
[ 8055.364940] sd 7:0:0:0: [sdb] READ CAPACITY failed
[ 8055.364954] sd 7:0:0:0: [sdb]  
[ 8055.364961] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8055.364970] sd 7:0:0:0: [sdb]  
[ 8055.364975] Sense Key : Unit Attention [current] 
[ 8055.364987] sd 7:0:0:0: [sdb]  
[ 8055.364999] Add. Sense: Not ready to ready change, medium may have changed
[ 8059.448001] sd 7:0:0:0: [sdb] Test WP failed, assume Write Enabled
[ 8063.531287] sd 7:0:0:0: [sdb] Asking for cache data failed
[ 8063.531299] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 8109.447663] not responding...
[ 8130.915342] sd 7:0:0:0: [sdb] READ CAPACITY failed
[ 8130.915348] sd 7:0:0:0: [sdb]  
[ 8130.915351] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 8130.915354] sd 7:0:0:0: [sdb]  
[ 8130.915356] Sense Key : Unit Attention [current] 
[ 8130.915360] sd 7:0:0:0: [sdb]  
[ 8130.915365] Add. Sense: Not ready to ready change, medium may have changed
[ 8139.081607] sd 7:0:0:0: [sdb] Test WP failed, assume Write Enabled
[ 8147.247893] sd 7:0:0:0: [sdb] Asking for cache data failed
[ 8147.247899] sd 7:0:0:0: [sdb] Assuming drive cache: write through
[ 8147.247903] sd 7:0:0:0: [sdb] Attached SCSI disk

答案1

您可以尝试以下步骤来验证 HDD 的功能:

  1. 尝试使用 fdisk 查看你的 HDD sudo fdisk -l
    • 您的 HDD 列出吗?
    • 列表中显示了哪个文件系统?

如果此处未列出您的硬盘,则可能是硬盘已损坏 -> 不保证。在另一台电脑上尝试该硬盘!如果已列出(我怀疑可能已列出),请继续:

  1. 尝试使用 fdisk 和 mkfs 或 gparted 将磁盘格式化为新的文件系统。

    • 此后 HDD 还可以访问吗?
  2. 尝试使用 对您的磁盘进行“低级格式化”dd if=/dev/zero of=/dev/sdx
    确保您选择外部硬盘作为目标,否则 dd 将破坏您的整个系统。这将需要很长时间。之后再试第 2 步。

答案2

在尝试其他任何操作之前,请运行:

sudo apt update && sudo apt install ddrescue
sudo ddrescue if=/dev/sdx of=/mnt/path/to/large/drive/backup.img

这将安装救援该实用程序旨在尝试从故障磁盘恢复数据。该ddrescue ...命令从磁盘获取映像,然后可以将其作为环回安装,以防进一步发生故障。

有时,如果您能够在 Windows 上看到磁盘的驱动器号,Windows CHKDSK 工具可以帮助您修复 Windows 分区。我认为您需要的是 CHKDSK /R 选项。对于驱动器号 D:,这可能是:

CHKDSK /R D:

然后返回 Linux 并查看是否还有运气。

相关内容