FreeBSD: replace a disk in the ZFS boot mirror (zroot) with gpart

gpart backup ada0 | gpart restore -F ada3, BIOS bootcode on the freebsd-boot partition, loader.efi on the ESP, and zpool replace zroot ada3p4. Never the whole disk: you would lose the boot partitions.

September 25, 2026 · 4 min