Date: Thu, 31 Oct 2019 10:44:15 +0100 From: Polytropon <freebsd@edvax.de> To: Victor Sudakov <vas@sibptus.ru> Cc: freebsd-questions@freebsd.org Subject: Re: replacing zfs disk (freebsd-boot vs freebsd-efi) Message-ID: <20191031104415.ad81b5ce.freebsd@edvax.de> In-Reply-To: <20191030160229.GA97870@admin.sibptus.ru> References: <5bf91c8b-a101-a174-a08b-cda42a43a0b5@sentex.net> <20191030085329.GA77044@admin.sibptus.ru> <c2bb2150-586f-cd40-ff28-ce4def01d200@sentex.net> <20191030160229.GA97870@admin.sibptus.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
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, ...
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191031104415.ad81b5ce.freebsd>