备用 GPT 损坏的磁盘

备用 GPT 损坏的磁盘

我的磁盘的备用 GPT 已损坏,而 Linux 不想读取主磁盘。

我在内核日志中看到各种奇怪的消息。这是我插入驱动器时发生的情况。

[ 1030.358675] usb 3-1: new SuperSpeed USB device number 14 using xhci_hcd
[ 1030.378105] scsi host4: uas
[ 1030.379592] scsi 4:0:0:0: Direct-Access     Seagate  Expansion        9300 PQ: 0 ANSI: 6
[ 1030.408991] sd 4:0:0:0: Attached scsi generic sg1 type 0
[ 1030.409144] sd 4:0:0:0: [sdb] Spinning up disk...
[ 1031.438623] .
[ 1032.451912] .
[ 1033.465247] .
[ 1034.478653] .
[ 1034.478938] ready
[ 1034.479056] sd 4:0:0:0: [sdb] 2930277167 512-byte logical blocks: (1.50 TB/1.36 TiB)
[ 1035.549485] sd 4:0:0:0: [sdb] Write Protect is off
[ 1035.549488] sd 4:0:0:0: [sdb] Mode Sense: 4f 00 00 00
[ 1035.549640] sd 4:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1068.039214] sd 4:0:0:0: [sdb] tag#2 uas_eh_abort_handler 0 uas-tag 3 inflight: CMD IN 
[ 1068.039218] sd 4:0:0:0: [sdb] tag#2 CDB: opcode=0x28 28 00 ae a8 7b 2a 00 00 01 00
[ 1068.039304] sd 4:0:0:0: [sdb] tag#1 uas_eh_abort_handler 0 uas-tag 2 inflight: CMD IN 
[ 1068.039307] sd 4:0:0:0: [sdb] tag#1 CDB: opcode=0x28 28 00 ae a8 7b 29 00 00 01 00
[ 1068.039336] sd 4:0:0:0: [sdb] tag#0 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN 
[ 1068.039340] sd 4:0:0:0: [sdb] tag#0 CDB: opcode=0x28 28 00 ae a8 7b 28 00 00 01 00
[ 1068.039389] scsi host4: uas_eh_bus_reset_handler start
[ 1068.152519] usb 3-1: reset SuperSpeed USB device number 14 using xhci_hcd
[ 1068.170382] scsi host4: uas_eh_bus_reset_handler success

一旦我强行将其拔掉,我就会得到:

[  757.393131] Alternate GPT is invalid, using primary GPT.
[  757.393148]  sdb: sdb1 sdb3

此日志条目似乎反映主 GPT 有效并且缺少分区。但是,fdisk当我尝试向块设备读取或写入某些内容时,parted甚至dd会卡住,因此我无法手动恢复它。

我研究过使用十六进制编辑器用主 GPT 覆盖备用 GPT,但正如我提到的,磁盘的 I/O 被卡住。

如果相关,则该磁盘是 Seagate 磁盘,具有 LUKS 分区和 NTFS 分区,并且该表是 GUID 分区表。

相关内容