GEOM: da0: corrupt or invalid GPT detected. GEOM: da0: GPT rejected -- may not be recoverable. GEOM: diskid/DISK-V9UHNHZ7: corrupt or invalid GPT detected. GEOM: diskid/DISK-V9UHNHZ7: GPT rejected -- may not be recoverable. mountroot: waiting for device /dev/ufs/OPNsense_Install... Mounting from ufs:/dev/ufs/OPNsense_Install failed with error 19. Loader variables: vfs.root.mountfrom=ufs:/dev/ufs/OPNsense_Install vfs.root.mountfrom.options=ro,noatime Manual root filesystem specification: <fstype>:<device> [options] Mount <device> using filesystem <fstype> and with the specified (optional) option list. eg. ufs:/dev/da0s1a zfs:zroot/ROOT/default cd9660:/dev/cd0 ro (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) ? List valid disk boot devices . Yield 1 second (for background tasks) <empty line> Abort manual input
mdconfig -t vnode OPNsense-24.1-serial-amd64.img
root@freebsd:~ # gpart show /dev/md0=> 3 4676563 md0 GPT (2.2G) 3 66584 1 efi (33M) 66587 123 2 freebsd-boot (62K) 66710 1024 3 freebsd-swap (512K) 67734 4608832 4 freebsd-ufs (2.2G)
gpart recover