Steps:
From geom_label: Remove an old sysinstall(8) workaround (2021-07-05):
⚙ D30825 geom_label: Remove an old sysinstall(8) workaround
Might D30825/
- <https://www.freebsd.org/where/>
- download (for example) FreeBSD-11.4-RELEASE-amd64.vhd.xz
- verify the checksum
- extract FreeBSD-11.4-RELEASE-amd64.vhd
- add the virtual disk to VirtualBox
- grow the disk to 2.00 TB
- create a machine to use the disk
- boot in single user mode
gpart recover ada0
- a good partition table
- CAM- and ATA-related errors, a corrupt or invalid secondary GPT table and an input/output error.
From geom_label: Remove an old sysinstall(8) workaround (2021-07-05):
We removed sysinstall(8) back in 2011, so this workaround should be long since unnecessary. This workaround can end up breaking cases that are hit in the real world, such as dd'ing a small pre-built disk image to a large partition that you intend to grow on first boot and uses a UFS disk label for / in its /etc/fstab (as the only reliable thing a raw UFS image can reference).
⚙ D30825 geom_label: Remove an old sysinstall(8) workaround
Might D30825/
af433832f7520840c22edd1fe1266c1a5cb781ad
be a fix for what's seen with gpart(8) with FreeBSD-provided images that are grown as described above?