Boot Loader Issue

Michael Sierchio kudzu at
Sun Jun 23 23:17:16 UTC 2013

On Sun, Jun 23, 2013 at 4:12 PM, Polytropon <freebsd at> wrote:
> On Sun, 23 Jun 2013 15:47:53 -0700, Doug Hardie wrote:
>> I need to alter mountroot so it tries the right partition/slice.
>> How do I do that?  I couldn't find anything in the handbook on that.
> You need to install the GPT boot code, e. g.
>         # gpart add -t freebsd-boot -l gpboot -b 40 -s 512K ad0

Why the offset?  Why 512k?

>         # gpart bootcode -b /boot/pmbr -p /boot/gptboot -i 1 ad0

I think it's simpler to make an entry in /boot/loader.conf:


More information about the freebsd-questions mailing list