replacing zfs disk (freebsd-boot vs freebsd-efi)

Polytropon freebsd at edvax.de
Thu Oct 31 09:44:25 UTC 2019


On Wed, 30 Oct 2019 23:02:29 +0700, Victor Sudakov wrote:
> mike tancsa wrote:
> 
> [dd]
> 
> > > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 2 ada0
> > > The above ^^^^^ should be unnecessary. Your UEFI firmware will find the
> > > partition of the "efi" type and try to load /EFI/BOOT/BOOTX64.EFI from
> > > there, which in turn will sniff your ZFS filesystems for the loader.
> > 
> > I think FreeBSD's install added it by default. I wonder if that was done
> > to make the disks portable between EFI and non EFI systems ? I will have
> > to test to see if thats the case.
> 
> If you select "GPT (UEFI)" during installation, FreeBSD's install does
> not even create a freebsd-boot partition.
> 
> If you select "GPT (BIOS)", it may create it, I think.

Yes, that is correct (at least regarding FreeBSD 12.0).
Partition p1 is boot, p2 is /, p3 is swap, if you use
the automated installation.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list