3 ms·
GPT has a backup/recovery feature. If the disk was ever a valid GPT disk, then there'll be a copy of the partition table in the final block -- and if that wasn'
by Filligree 8y ago
GPT has a backup/recovery feature. If the disk was ever a valid GPT disk, then there'll be a copy of the partition table in the final block -- and if that wasn't cleared properly then a functioning UEFI is supposed to restore the primary table from it.
The UEFI bios may be following the spec to the letter, here. If so, the takeaway is to always use `wipefs -a`.
- nh2 8y agoThe spec actually says that software should prompt for confirmation and report that it performed changes (see elsewhere in this thread). `wipefs -a` is a good recommendation, but perhaps it can delete too much? In my case, I used `sgdisk --zap` to delete specifically the GPT bytes without deleting other data.