修复机器关闭时处于 DD 清零过程中的硬盘驱动器

修复机器关闭时处于 DD 清零过程中的硬盘驱动器

当意外导致机器断电时,我无法访问正在使用 dd 命令清零的硬盘驱动器。我无法使用 fdisk、gparted、dd 等访问硬盘驱动器。出现 IO 错误。

我想知道是否有办法修复它?

从 dmesg 中,我收到数千个这样的错误:

[10887.147513] sd 0:0:0:0: [sda] tag#31 Sense Key : Illegal Request [current] 
[10887.147515] sd 0:0:0:0: [sda] tag#31 Add. Sense: Unaligned write command
[10887.147518] sd 0:0:0:0: [sda] tag#31 CDB: Read(10) 28 00 74 70 6d 00 00 00 08 00
[10887.147521] blk_update_request: I/O error, dev sda, sector 1953524992 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0

当我

[someuser@somehost ~]$ sudo smartctl -a -d scsi /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.6.6-300.fc32.x86_64] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

User Capacity:        1,000,204,886,016 bytes [1.00 TB]
Logical block size:   512 bytes
Physical block size:  4096 bytes
LU is fully provisioned
Rotation Rate:        5400 rpm
Form Factor:          2.5 inches
Logical Unit id:      0x5000039535d0c3fe
Serial number:        Z3TFS3TUS
Device type:          disk
Local Time is:        Tue Jun  9 21:57:37 2020 EDT
SMART support is:     Unavailable - device lacks SMART capability.

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

Error Counter logging not supported


[GLTSD (Global Logging Target Save Disable) set. Enable Save with '-S on']
Device does not support Self Test logging

我对恢复任何数据不感兴趣,而只是修复磁盘以便我可以继续使用它。

有什么神奇的命令可以帮助我吗?

谢谢

相关内容