Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Jun 2018 18:48:26 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Manish Jain <jude.obscure@yandex.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Minimum size of freebsd-boot
Message-ID:  <20180621184826.9ae9ed8d.freebsd@edvax.de>
In-Reply-To: <024a7da5-4d80-960c-9479-34fef887ff35@yandex.com>
References:  <024a7da5-4d80-960c-9479-34fef887ff35@yandex.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, 21 Jun 2018 21:45:38 +0530, Manish Jain wrote:
> Under GPT, FreeBSD needs a freebsd-boot partition of max size 512 KB. Is 
> there a minimum size too ?

The minimum size depends on what you require on the
/boot partition. The ZFS loader is bigger than the
classic UFS-only loader. Older FreeBSD documentation
suggested a smaller size (approx. 40 kB) which today
probably wouldn't be sufficient.

Note that the whole partition is loaded into memory.
And partition alignment is also important. That's why
512 kB is a good value (2^9). :-)

Subsequent partitions typically start at the next
multiple of 1 MB (which fits both 512 B and 4 kB
sector size). So you could try to create a smaller
/boot partition, but the next one, maybe / or swap,
would start at 1 MB anyway.



Also see:

http://www.wonkity.com/~wblock/docs/html/disksetup.html

https://www.freebsd.org/doc/handbook/bsdinstall-partitioning.html

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211361

https://forums.freebsd.org/threads/freebsd-boot-size.64794/


-- 
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?20180621184826.9ae9ed8d.freebsd>