DHOC_TAZH many thanks for the reference, I'll be sure to check that out.
Meanwhile, by some cunning move I was able to pull off a recovery of the existing legacy boot without needing to reinstall! After wrangling with Brave browser's AI chat bot for a fair while, I was eventually able to figure out the required steps for recovery from a liveUSB, and why the initial steps didn't work.
For context, this was a default legacy boot installation of GhostBSD on a blank SSD with GPT partition table, done with a recent GhostBSD iso on a Ventoy USB stick.
For some reason, "gpart show" from the liveUSB was always reporting corrupted partitions, but would happily cooperate after using "gpart recover ada0".
Humorously, one of Brave's first suggestions was this... I opted not to accept this proposal:
gpart destroy -F ada0
On a more sensible side, the proposed fix included the following:
gpart show
gpart recover ada0
gpart show ada0
gpart delete -i 1 ada0
gpart add -t freebsd-boot -s 512k -i 1 ada0
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ada0
then reboot
This didn't work however, on rebooting I saw the following errors:
"gptboot: backup gpt header checksum mismatch
gptboot: no ufs partition was found"
There were 2 reasons this did not work:
Firstly, the existing (legacy) freebsd-boot size allocation was only 256k, so it was adding a new ada0p1 partition after the main partition. Secondly, the main partition was zfs format, not ufs.
This fix did work for me:
gpart show
gpart recover ada0
gpart show ada0
gpart delete -i 1 ada0
gpart add -t freebsd-boot -s 256k -i 1 ada0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ada0
then reboot
At this point I think I will just leave this laptop in legacy boot mode until I have more time to do a full reinstall.
screenshot-at-2026-05-14-00-33-08.png