From owner-freebsd-current@FreeBSD.ORG Thu Jun 28 09:41:58 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 2EFCB106566B for ; Thu, 28 Jun 2012 09:41:58 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward3.mail.yandex.net (forward3.mail.yandex.net [IPv6:2a02:6b8:0:602::3]) by mx1.freebsd.org (Postfix) with ESMTP id 91CB48FC14 for ; Thu, 28 Jun 2012 09:41:57 +0000 (UTC) Received: from smtp4.mail.yandex.net (smtp4.mail.yandex.net [77.88.46.104]) by forward3.mail.yandex.net (Yandex) with ESMTP id 3766DB41408 for ; Thu, 28 Jun 2012 13:41:55 +0400 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340876515; bh=hNsblxnOlgzjkE2rUUREYnfJtbVg/CwEgEXBEJaVq3Y=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=Ggj3/G2abZ6pnmPOYidg2eLF2sSHfEA3tnX2TTq7H9OMPfrEALbXlAcHN5dN3bI5q HbCmiJ9T1oXUUy5knIXEE4rK43ksvNVlrvy+xWj4o5Jc9Wb5ufuMyW96w8NMB4qgeh ejJ7XVfPdI6+BeifroKWtRK+Jz7iy/PMp/GX1610= Received: from smtp4.mail.yandex.net (localhost [127.0.0.1]) by smtp4.mail.yandex.net (Yandex) with ESMTP id 193CF5C03D0; Thu, 28 Jun 2012 13:41:55 +0400 (MSK) Received: from mail.kirov.so-ups.ru (mail.kirov.so-ups.ru [178.74.170.1]) by smtp4.mail.yandex.net (nwsmtp/Yandex) with ESMTP id fsFuP00J-fsFuGM7H; Thu, 28 Jun 2012 13:41:54 +0400 X-Yandex-Rcpt-Suid: bsam@passap.ru 1130000005322498 X-Yandex-Rcpt-Suid: freebsd-current@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1340876515; bh=hNsblxnOlgzjkE2rUUREYnfJtbVg/CwEgEXBEJaVq3Y=; h=Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:X-Enigmail-Version:Content-Type: Content-Transfer-Encoding; b=fh3rdFGjrgsg33lKHK2i6Vv7MYKo3p2Oq7WVBOF0IyqDztysrDgpoIkSSj9KPXzG6 A8/59a05nsAbcIm3cloxfbjj577L6bce7HS78eNH69W7ndjMcDhstHY82GmXMHaZbn HidX938+5HirgPBNf3pWd70orO0TcnjkHIG6CN1Y= Message-ID: <4FEC26E2.7000206@yandex.ru> Date: Thu, 28 Jun 2012 13:41:54 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla Thunderbird 1.5 (FreeBSD/20051231) MIME-Version: 1.0 To: Boris Samorodov 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> <4FEC21BA.5070606@passap.ru> In-Reply-To: <4FEC21BA.5070606@passap.ru> X-Enigmail-Version: 1.4.2 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 8bit Cc: freebsd-current@freebsd.org 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:41:58 -0000 On 28.06.2012 13:19, Boris Samorodov wrote: > 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? Then this sector contains GPT table. -- WBR, Andrey V. Elsukov