>
> > Under GPT, FreeBSD needs a freebsd-boot partition of max size 512 KB...
Not so. 64k works just fine. The binary /boot/gptboot is 60258 bytes. A
snippet of the code I use to build hosts. Note that subsequent partitions
are forced to be aligned on 64k boundaries.
# add boot partition
# p1
gpart add -t freebsd-boot -l ${PFX}-boot -s 64k ${DISK}
# put boot code in boot partition
gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ${DISK}
# add root, make sectors aligned
# p2
gpart add -t freebsd-ufs -l ${PFX}-root -a 64k -s ${ROOTSIZ} ${DISK}
--
"Well," Brahma said, "even after ten thousand explanations, a fool is no
wiser, but an intelligent person requires only two thousand five hundred."
- The Mahābhārata
offset=`diskinfo $DISK | awk '{ print $4 - 129 }'`
dd if=/dev/zero of=/dev/$DISK bs=64k count=1
dd if=/dev/zero of=/dev/$DISK seek=$offset
On Thu, Jun 21, 2018 at 9:39 AM, Michael Sierchio <ku...@tenebras.com>
wrote:
I use:
gpart add -a 4k -s 128M -t efi ada0
gpart add -a 4k -s 256K -t freebsd-boot -l boot0 ada0
gpart add -a 4k -t freebsd-zfs -l zroot0 ada0
This will create a 128MB partition to use EFI if wanted.
Create a 256KB boot partition which is more than enough.
Use the rest for a ZFS setup.
Gruß
Matthias
--
"Programming today is a race between software engineers striving to
build bigger and better idiot-proof programs, and the universe trying to
produce bigger and better idiots. So far, the universe is winning." --
Rich Cook