我的一个朋友给了我一个 2TB 的 Seagate 外置硬盘,看上去有点问题。而且,问题确实很严重。
首先,我确实尝试了很多“常见”命令,花了几个小时在谷歌上搜索东西,尝试了 Linux 和 Windows(用于 chkdsk),打开了 HDD 外壳将其直接插入 SATA,我要补充一点,我不需要恢复数据,我只需要格式化它。
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 1,8T 0 disk
这sda
是磁盘,它的大小,1.8T似乎是正确的。
在 GParted 中,磁盘仅显示为~1.9GB。我可以创建分区表,但无法创建有效分区。即使可以,也只能是 1.9GB。
dd if=/dev/zero of=/dev/sda
dd: error writing '/dev/sda': No space left on device
3782129+0 records in
3782128+0 records out
1936449536 bytes (1,9 GB, 1,8 GiB) copied, 7,04022 s, 275 MB/s
smartctl -a /dev/sda
Read Device Identity failed: Invalid argument
分开
Error: Unable to open /dev/sda - unrecognised disk label.
Model: (file)
Disk /dev/sda : 1936MB
Sector size (logical/physical): 512B/512B
Partition table : unknown
消息
[ 7925.612174] sd 2:0:0:0: [sda] Synchronizing SCSI cache
[ 7925.862625] sd 2:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[ 7931.193045] sd 2:0:0:0: [sda] 3809353968 512-byte logical blocks: (1.95 TB/1.77 TiB)
[ 7931.193049] sd 2:0:0:0: [sda] 4096-byte physical blocks
[ 7931.193313] sd 2:0:0:0: [sda] Write Protect is off
[ 7931.193316] sd 2:0:0:0: [sda] Mode Sense: 2f 00 00 00
[ 7931.193593] sd 2:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 7931.193995] sd 2:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (4096 bytes)
[ 7931.390515] sd 2:0:0:0: [sda] tag#18 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 7931.390523] sd 2:0:0:0: [sda] tag#18 Sense Key : Illegal Request [current]
[ 7931.390529] sd 2:0:0:0: [sda] tag#18 Add. Sense: Invalid command operation code
[ 7931.390536] sd 2:0:0:0: [sda] tag#18 CDB: Read(6) 08 00 00 00 08 00
[ 7931.390545] blk_update_request: critical target error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 7931.390558] Buffer I/O error on dev sda, logical block 0, async page read
[ 7931.500384] sd 2:0:0:0: [sda] tag#19 FAILED Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[ 7931.500451] sd 2:0:0:0: [sda] tag#19 Sense Key : Illegal Request [current]
[ 7931.500461] sd 2:0:0:0: [sda] tag#19 Add. Sense: Invalid command operation code
[ 7931.500472] sd 2:0:0:0: [sda] tag#19 CDB: Read(6) 08 00 00 00 08 00
你知道吗?我猜硬盘可能坏了,但我不太确定。
我发现有趣的是 1.8TB 大小lsblk
和其他地方的 1.9GB。
再说一次,我不需要恢复以前的数据(而且由于我确实写了很多 0,它们可能永远消失了 :p)。我只想格式化磁盘以使其再次可用。
谢谢你的时间 :)