Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2012 08:42:49 +0000
From:      Arthur Chance <freebsd@qeng-ho.org>
To:        Warren Block <wblock@wonkity.com>
Cc:        freebsd-questions@freebsd.org
Subject:   gpt booting (Was: Re: boot problem after freebsd-update from 9.1-RC2 to 9.1-RC3)
Message-ID:  <50AC9409.1030609@qeng-ho.org>
In-Reply-To: <alpine.BSF.2.00.1211202201460.42121@wonkity.com>
References:  <50ABE97B.5030408@johnea.net> <50AC041A.7050607@dreamchaser.org> <50AC3116.6010600@johnea.net> <alpine.BSF.2.00.1211202201460.42121@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/21/12 05:11, Warren Block wrote:
> gptboot looks for the first UFS partition.  Maybe /boot/boot can be
> modified to do that also.

It's a little more complicated than that Warren.

AIUI gptboot first looks (in partition order) for partitions with both 
the bootme and bootonce attributes set. If it doesn't find any, or if 
they all failed to boot it then tries booting partitions with just the 
bootme attribute. It only boots the first UFS partition if no partitions 
have the bootme attribute set, and IIRC that is for compatibility with 
the 8.x gptboot which didn't know the boot* attributes.

Confusingly, there's no manual page for gptboot to document this. It's 
sort of implicit in the gpart manual page, in the section on ATTRIBUTES 
for GPT, but the best way to understand it is to read the code for 
gptfind in

/usr/src/sys/boot/common/gpt.c





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