mediax wrote: 24 Aug 2021, 13:50
Hi folks,
I have a precautionary question! I have bought a new external SSD (1 terabyte) and I am thinking of using a GPT partition table instead of the MBR partition table. Since my SSD has less than 2 terabytes of capacity, I could use both MBR and GPT. I read my way into the subject and saw that GPT has special security advantages over MBR, namely it has a primary and a backup GPT header, the integrity of which can be checked with CRC32 checksums.
But now I'm just wondering what happens if the GPT header was destroyed. Would an automatic repair then take place? For example, would Windows or Linux automatically restore the GPT header from the backup if my external SSD has a defective GPT header, or how should I imagine that?
I don't know. I guess there is no automatic repair. You can test that yourself by zeroing out the GPT header area.
Could the hard drive firmware even do the repair itself?
It could, be that is not its job. The job of the hard drive firmware is to mainly manage reading and writing of sectors and management of unreadable sectors. GPT repairs would require interpreting the on-disk structure. This is reserved to a higher level entity above firmware such as the operating system.
Or would you have to start the repair manually in the event of a GPT damage, for example with TestDisk?
Yes.
Is TestDisk more likely to restore a GPT partition table than a MBR partition table?
If the backup header is still readable, yes. Otherwise both operations rely on recognizing partitions correctly.
Does the choice of the partition table also have an impact on the security of the integrity of the file system (like NTFS), or is there no connection here?
No.
MBR would have the convenient advantage that my smart television can also access it, unfortunately not GPT. So I wonder if GPT is so much safer that it's worth using GPT instead of MBR?
There is one issue in favor of GPT:
Once the number of partitions grow MBR requires a chain of partition tables all over the drive between each partition. Each one requires a sector.
When a MBR style partition table is destroyed the repair requires writing partition tables between the partitions. If the beginning and end of each partition is not identified correctly Testdisk will write those partition tables into the partitions and overwriting content.
As there is no backup function in Testdisk for that operation you so that you will loose data.
But you are better off anyway to duplicate a logically broken drive even if it has no hardware defects such as unreadable sectors.
Some advantages of GPT that came to my mind:
There is no CHS data anymore. Sectors are identified by one wide numerical number, the logical sector number.
There are no complicated rules anymore that exist with MBR what the reference point is when address information has to be interpreted as relative offset.