I encounter such issues (second copy of GPT header, size mismatch etc) while working on Rocky Linux 10 based image. I was able to manage issues and submitted the pull-request (https://github.com/Drewsif/PiShrink/pull/330).
You can check/try the fork here https://github.com/uboreas/PiShrink
I hope it helps.
You can check/try the fork here https://github.com/uboreas/PiShrink
I hope it helps.
Statistics: Posted by uboreas — Tue Sep 02, 2025 10:39 am