#942506 program does not recognise GPT table

Package:
testdisk
Source:
testdisk
Description:
Partition scanner and disk recovery tool, and PhotoRec file recovery tool
Submitter:
Toni
Date:
2019-10-17 10:39:07 UTC
Severity:
normal
#942506#5
Date:
2019-10-17 10:28:28 UTC
From:
To:
Hello,

I wanted to use testdisk on a disk, but it gives me this:
------ cut
Analyse Disk /dev/sda - 1801 GB / 1678 GiB - CHS 219051 255 63
hdr_size=92
hdr_lba_self=1
hdr_lba_alt=7814037167 (expected 3519069871)
hdr_lba_start=34
hdr_lba_end=7814037134
hdr_lba_table=2
hdr_entries=128
hdr_entsz=128
Partition table type (auto): None
------ cut

In contrast, gdisk gives me this:
------ cut Partition table scan: MBR: protective BSD: not present APM: not present GPT: damaged ... Recovery/transformation command (? for help): i Using 1 Partition GUID code: YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYYYYYY (Linux filesystem) Partition unique GUID: XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX First sector: 2048 (at 1024.0 KiB) Last sector: 7814035455 (at 3.6 TiB) Partition size: 7814033408 sectors (3.6 TiB) Attribute flags: 0000000000000000 Partition name: 'correct-partition-name' ------ cut So, there is a GPT table there, somewhere. It would be nice if testdisk would do a better job with disks having a GPT partition table. Cheers, Toni