From owner-freebsd-current@FreeBSD.ORG Thu Jun 28 09:20:18 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 79EF7106566C for ; Thu, 28 Jun 2012 09:20:18 +0000 (UTC) (envelope-from bsam@passap.ru) Received: from forward5h.mail.yandex.net (forward5h.mail.yandex.net [84.201.186.23]) by mx1.freebsd.org (Postfix) with ESMTP id 245808FC16 for ; Thu, 28 Jun 2012 09:20:18 +0000 (UTC) Received: from smtp1h.mail.yandex.net (smtp1h.mail.yandex.net [84.201.187.144]) by forward5h.mail.yandex.net (Yandex) with ESMTP id 63F7AD02670 for ; Thu, 28 Jun 2012 13:19:55 +0400 (MSK) Received: from smtp1h.mail.yandex.net (localhost [127.0.0.1]) by smtp1h.mail.yandex.net (Yandex) with ESMTP id 47E7513402E5 for ; Thu, 28 Jun 2012 13:19:55 +0400 (MSK) Received: from 87.249.28.58.tel.ru (87.249.28.58.tel.ru [87.249.28.58]) by smtp1h.mail.yandex.net (nwsmtp/Yandex) with ESMTP id JsZSoWFG-JsZSX7JW; Thu, 28 Jun 2012 13:19:54 +0400 X-Yandex-Rcpt-Suid: freebsd-current@freebsd.org Message-ID: <4FEC21BA.5070606@passap.ru> Date: Thu, 28 Jun 2012 13:19:54 +0400 From: Boris Samorodov User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:13.0) Gecko/20120620 Thunderbird/13.0.1 MIME-Version: 1.0 To: freebsd-current@freebsd.org 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> In-Reply-To: <4FEB5EA1.7060903@yandex.ru> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: [CFC/CFT] large changes in the loader(8) code X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Jun 2012 09:20:18 -0000 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