CFR: backup GPT header support in pmbr and loader(8) (Re: Handbook mirroring section)

Andrey V. Elsukov ae at FreeBSD.org
Thu Jun 14 13:50:16 UTC 2012


On 14.06.2012 17:08, Olivier Smedts wrote:
> 2012/6/14 Andrey V. Elsukov <ae at freebsd.org>:
>> Also, our PMBR image doesn't contain any partition entries and
>> writing it to the disk with dd(1) makes the system unbootable.
>> What you think if we will add one partition entry to the PMBR image?
>> I modified your patch (the last hunk added) and it is attached.
> 
> Isn't it gpart(8)'s job to write the proper boot code from the pmbr
> image without damaging the partition table ?
> 
> ie. "gpart bootcode -b /boot/pmbr ada0" instead of using dd.

gpart(8) works only when GPT's geom exists, when PMBR is damaged
GEOM_PART_GPT can't detect GPT and thus you can't use it.

-- 
WBR, Andrey V. Elsukov



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20120614/187c8a42/signature.pgp


More information about the freebsd-current mailing list