Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Nov 2012 15:10:59 +0100
From:      "Lucas B. Cohen" <lbc@bnrlabs.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Wheres the FreeBSD PBR ? (was Re: Manually partitioning using gpart / wh)
Message-ID:  <50B226F3.2000207@bnrlabs.com>
In-Reply-To: <1353850537.2508.66.camel@q>
References:  <1353842774.2508.18.camel@q> <50B20FD9.9070405@bnrlabs.com> <1353848249.2508.41.camel@q> <50B2197C.2040003@bnrlabs.com> <1353850537.2508.66.camel@q>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2012.11.25 14:35, Ralf Mardorf wrote:
> I don't need it, but I could add it for what ever worst case emergency
> scenario and GRUB in the MBR anyway will work?
I don't see how it could ever come in handy, and I'm not sure it
wouldn't do any hamr either. The /boot/gptboot code to be written weighs
15kB, that could be big enough to mess up the filesystem on the
partition. That /boot/gptboot code is designed to work on a
special-purpose small GPT partition that doesn't hold a filesystem. So I
would refrain from doing it.

It would be useful for emergency purposes to write MBR-partition
scheme-compatible bootcode to that partition instead, but I've yet to
find out how to do it. gpart(8) seems to have the ability to do it, but
it's manual page doesn't mention what file to pass to its -p option to
do that. Maybe it's one of those /boot/boot1 or /boot/boot2 files I'm
seeing on my system. Maybe someone can enlighten me on that.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50B226F3.2000207>