Problem with "invalid main GPT header" installing netboot product

Antworten
bourhis
Beiträge: 139
Registriert: 07 Nov 2012, 15:57

Problem with "invalid main GPT header" installing netboot product

Beitrag von bourhis »

Hi,

when I try to install "win11-x64" netboot product, during the step "Create new partition table on /dev/sda", I frequently obtain this error message :

Code: Alles auswählen

RuntimeError("Command '/usr/sbin/sgdisk --clear -g -p /dev/sda' failed (2):
Caution: invalid main GPT header, but valid backup; regenerating main header\nfrom backup!

Warning: Invalid CRC on main header data; loaded backup partition table.
Warning! One or more CRCs don't match. You should repair the disk!
Main header: Error
Backup header : OK
Main partition table: OK
Backup partition table: OK

Invalid partition data!
Information: Creating fresh partition table; will override earlier problems!
The operation has completed succesfully")
After that I have to boot on a "live-cd" an do these operations :

Code: Alles auswählen

sgdisk --recover-mbr /dev/sda
sgdisk --zap-all /dev/sda
wipefs -a /dev/sda
dd if=/dev/zero of=/dev/sda bs=512 count=20480 status=progress
dd if=/dev/zero of=/dev/sda bs=512 seek=$(( $(sudo blockdev --getsz /dev/sda) - 20480 )) count=20480 status=progress
Is there a way to do that automatically via Opsi ?

Regards.
Antworten