Date: Fri, 21 Feb 2025 10:50:30 +1100 From: Dewayne Geraghty <dewayne@heuristicsystems.com.au> To: questions@freebsd.org Subject: GPT secondary corrupt. Is dd'ing the first 40 sectors as a backup sufficient? Message-ID: <e26bb5cc-f0fb-4342-9448-468f0ec5a0c4@heuristicsystems.com.au>
next in thread | raw e-mail | index | archive | help
I have a full disk gmirror on 12.4 using the MBR scheme. As I'm migrating to 14.2S and would like to use GPT scheme, so to my questions: 1. Is there a sysctl, or flag (somewhere) to disable " the secondary GPT table is corrupt or invalid." notifications? And the fear-inspiring # gpart show md0 => 40 32688 md0 GPT (16M) [CORRUPT] 2. To recover a damaged primary partition, is it sufficient to restore from a dd of the first 40 sectors of the disk, taken after disk setup (formatting and labelling the disk)? 3. Is the partition header written to without my involvement? (eg is the clean bit set/stored in the primary or a "sub-"partition (p*)?) I'm sorry if my language is a bit clumsy I'm used to slices and partition. Cheers, Dewayne PS Sadly ZFS doesn't support labels (re MAC_[MLS,BIBA])
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e26bb5cc-f0fb-4342-9448-468f0ec5a0c4>