A GPT disk stores its partition table twice: once near the start of the drive and once at the very end. The second copy is the GPT backup header and the backup partition entry array. It exists so that a damaged primary header does not automatically mean a lost disk, and it is the reason a disk can sometimes be recovered without touching the files.
The catch is that many tools react to a broken primary header by offering to initialise the disk, which writes a new table and turns a recoverable problem into a real data loss. Knowing the layout helps you choose the safe path.
A GPT disk is organised in a fixed order:
Each header carries a checksum of itself and a checksum of the entry array. Firmware and operating systems verify both before trusting the table.
The duplicate protects against the most common corruption: a stray write to the first sectors of the disk. A boot loader, an old partitioning tool or a failing drive can damage LBA 1 without touching the end of the disk, and the backup still describes the original layout.
The UEFI specification allows firmware to fall back to the backup when the primary header fails its checksum. Windows is more conservative: it may report the disk as unreadable even when the backup is intact, which is why manual repair is often needed.
A single unreadable partition with the rest of the disk intact is usually a file-system problem, not a header problem. Header damage affects the whole table at once.
When Windows offers to initialise the disk, choose Cancel. Initialising writes a fresh GPT, which overwrites the remaining metadata and makes recovery harder. The same applies to diskpart clean, to "fix" options in tools that do not understand GPT, and to formatting the unallocated space that appears in place of your volumes.
If the data matters, stop writing to the disk and work from a copy whenever possible.
The repair uses the surviving copy to rebuild the damaged one. A GPT-aware partition editor such as gdisk or TestDisk can do this, and both run from a Linux live environment or a bootable USB.
If both headers are damaged but the partitions themselves are intact, a partition-recovery scan can find the file-system boot sectors and rebuild the table from them. That is a slower path and works best when the disk has not been written to.
Before any repair, create a disk image when the disk still responds. Qiling Disk Master can back up the disk at sector level, which preserves the damaged table as well as the data and gives you a safe snapshot to work from.
Step 1. Connect a destination drive with enough capacity, launch Qiling Disk Master, open the Backup and Recovery tab and click Disk/Partition backup.

Step 2. Tick the affected disk as the source and click the folder icon to set the destination.

Step 3. Choose a folder on the healthy drive and click OK.

Step 4. Click Proceed to create the image, then run the repair on the original disk. If the repair fails, restore the image and try a different approach.

Not reliably. Windows may use the backup during boot on some systems, but Disk Management does not expose a header-repair command. A GPT-aware partition editor is the practical tool.
Only if the end of the disk is intact. Damage that affects the whole drive, or a disk that reports the wrong capacity, may have destroyed both copies.
It restores access to the partitions. If the file system inside a partition is also damaged, a separate file-system check or recovery step is required.