Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2012 13:19:54 +0400
From:      Boris Samorodov <bsam@passap.ru>
To:        freebsd-current@freebsd.org
Subject:   Re: [CFC/CFT] large changes in the loader(8) code
Message-ID:  <4FEC21BA.5070606@passap.ru>
In-Reply-To: <4FEB5EA1.7060903@yandex.ru>
References:  <4FE9B01C.30306@yandex.ru> <201206261337.11741.jhb@freebsd.org> <4FEA910C.4090305@yandex.ru> <7E41D945-F6FA-48D5-ADDC-4884A7C7C0F8@xcllnt.net> <4FEB5EA1.7060903@yandex.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
27.06.2012 23:27, Andrey V. Elsukov пишет:

> 1. You are against from:
> Our loader detects that primary GPT header is damaged. It tries to read
> backup GPT header from the last LBA and it detects that there is
> "GEOM::" signature. It tries to read one previous sector and there is
> *valid*  GPT header.

Can we do the other way round? I.e. the GPT header is at the last 
sector. And if GEOM singature is not found at last sector of the disk
and this sector is a GPT header then look at the previous sector?

> It is valid, because it's CRC is valid, it's
> self_LBA is valid. For the*FreeBSD*  users it is better to don't use
> this GPT and just complain "i'm sorry, can't boot". The other OSes
> can't, and we shouldn't.

-- 
WBR, Boris Samorodov (bsam)
FreeBSD Committer, http://www.FreeBSD.org The Power To Serve





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FEC21BA.5070606>