I have a boot partition of 172K on a new Deciso hardware purchased in December 2025 and delivered with OPNsense 25.10. I'm runnning OPNsense on eight Deciso hardware devices. Just one I reinstalled in the past has 512K. All others have 172K and one has 156K.
These are the steps I am taking to solve my problem remotely. Be careful and do not copy'n'paste. Check your device, partition ids and partition starts and sizes. I did not recreated the EFI partition, because EFI boot is not used on my hardware devices.
These are the steps I am taking to solve my problem remotely. Be careful and do not copy'n'paste. Check your device, partition ids and partition starts and sizes. I did not recreated the EFI partition, because EFI boot is not used on my hardware devices.
Code Select
# gpart show | egrep "GPT|freebsd-boot|efi"
=> 3 500118181 nda0 GPT (238G)
3 532480 1 efi (260M)
532483 311 2 freebsd-boot (156K)
# sysctl -a | grep machdep.bootmethod
machdep.bootmethod: BIOS
# umount /boot/efi
# gpart delete -i 1 nda0
nda0p1 deleted
# gpart delete -i 2 nda0
nda0p2 deleted
# ll -h /boot/gptzfsboot
-r--r--r-- 1 root wheel 172K Feb 3 14:05 /boot/gptzfsboot
# gpart add -t freebsd-boot -s 512k -b 3 -l gptboot0 nda0
nda0p1 added
# gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 nda0
partcode written to nda0p1
bootcode written to nda0
[Reboot]
"