Invalid backup GPT header on tegra igx image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Confirmed
|
High
|
Paul Mars |
Bug Description
Affects Tegra images daily builds and release image:
https:/
https:/
Image definition: https:/
Gadget yaml: https:/
Building the image:
ubuntu@
WARNING: rootfs.
WARNING: rootfs.
[0] build_gadget_tree
[1] prepare_gadget_tree
[2] load_gadget_yaml
WARNING: volumes:
[3] verify_
[4] germinate
[5] create_chroot
[6] install_packages
[7] prepare_image
[8] preseed_image
[9] clean_rootfs
[10] customize_
[11] customize_
[12] set_default_locale
[13] populate_
[14] calculate_
[15] populate_
[16] populate_
[17] make_disk
[18] update_bootloader
[19] generate_
Build successful
Checking the partition table:
ubuntu@
GPT fdisk (gdisk) version 1.0.8
Caution: invalid backup GPT header, but valid main header; regenerating
backup header from main header.
Warning! Main and backup partition tables differ! Use the 'c' and 'e' options
on the recovery & transformation menu to examine the two tables.
Warning! One or more CRCs don't match. You should repair the disk!
Main header: OK
Backup header: ERROR
Main partition table: OK
Backup partition table: ERROR
Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: damaged
*******
Caution: Found protective or hybrid MBR and corrupt GPT. Using GPT, but disk
verification and recovery are STRONGLY recommended.
*******
Warning! Secondary partition table overlaps the last partition by
9585020 blocks!
You will need to delete this partition or resize it in another utility.
Disk output/
Sector size (logical): 512 bytes
Disk identifier (GUID): F29EC7AD-
Partition table holds up to 128 entries
Main partition table begins at sector 2 and ends at sector 33
First usable sector is 34, last usable sector is 139231
Partitions will be aligned on 2048-sector boundaries
Total free space is 2014 sectors (1007.0 KiB)
Number Start (sector) End (sector) Size Code Name
1 2048 104447 50.0 MiB EF00 EFI System
2 104448 9724251 4.6 GiB 8300 writable
Hey Rémy,
We are aware of issues regarding the partition layout, including the GPT backup header (see LP: #2045006, and https:/ /github. com/canonical/ ubuntu- image/pull/ 124).
Thank you for the detailed use case, it will surely help, at least to write a test case. I currently plan on investigating this right after Madrid.