void-mklive icon indicating copy to clipboard operation
void-mklive copied to clipboard

GPT PMBR size mismatch on generated image

Open rudism opened this issue 3 years ago • 1 comments

I'm trying to build an image for the Pinebook Pro, doing the following:

> sudo ./mkrootfs.sh -o aarch64latest aarch64
> sudo ./mkplatformfs.sh pinebookpro aarch64latest
> sudo ./mkimage.sh void-pinebookpro-PLATFORMFS-20220403.tar.xz

This all completes without any errors, but when I write the resulting image to an SD card and then open that SD card with fdisk, it gives this error message:

> xzcat void-pinebookpro-20220403.img.xz | dd of=/dev/sde bs=4M status=progress
> sudo fdisk /dev/sde

Welcome to fdisk (util-linux 2.37.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

GPT PMBR size mismatch (4194303 != 125173759) will be corrected by write.
The backup GPT table is not on the end of the device. This problem will be corrected by write.

The SD card boots OK in the Pinebook Pro, but it will freeze up if I do anything disk intensive, and if I make any changes in fdisk (such as recreating the root partition to increase its size, or creating new partitions) then the SD card no longer boots.

Not sure if I'm doing something wrong when generating the image, or if there is actually a problem.

rudism avatar Apr 03 '22 20:04 rudism

Full log output here https://gist.github.com/rudism/29fa2f9fa64cab4ed6d5261892fe29a7

rudism avatar Apr 03 '22 21:04 rudism