From owner-freebsd-current@FreeBSD.ORG Mon Aug 25 15:03:39 2014 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id CF62D29C; Mon, 25 Aug 2014 15:03:39 +0000 (UTC) Received: from forward9l.mail.yandex.net (forward9l.mail.yandex.net [IPv6:2a02:6b8:0:1819::9]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7C5B135D4; Mon, 25 Aug 2014 15:03:39 +0000 (UTC) Received: from smtp2h.mail.yandex.net (smtp2h.mail.yandex.net [84.201.187.145]) by forward9l.mail.yandex.net (Yandex) with ESMTP id 00796E60CB7; Mon, 25 Aug 2014 19:03:26 +0400 (MSK) Received: from smtp2h.mail.yandex.net (localhost [127.0.0.1]) by smtp2h.mail.yandex.net (Yandex) with ESMTP id 2D321170569F; Mon, 25 Aug 2014 19:03:26 +0400 (MSK) Received: from 5.255.232.27-red.dhcp.yndx.net (5.255.232.27-red.dhcp.yndx.net [5.255.232.27]) by smtp2h.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id 3HqVXSOlvW-3PMapNL4; Mon, 25 Aug 2014 19:03:25 +0400 (using TLSv1 with cipher AES128-SHA (128/128 bits)) (Client certificate not present) X-Yandex-Uniq: 9a8b763c-7d9c-4e8b-bec4-acaee4fe2879 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1408979005; bh=4GYq00Jy1ZyKcpLtt5fsj13TeHTrYLT5Q/Gb5BV9zqY=; 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=aCfVIaVPCvqlIHSH/lpKoedijGnFiepafg+cS0fajYvD3HS19L0AjLc1lGz7ffE5x yqaDvEdS35nFzf1/T19frBD7I4ggnhpCOba11ggmL8pmQ9lOZh9B6mZmWus42lqn/W CxEpdwubl30vj4Sy0cqBfKpE8nOc2PKLf0BbhwBs= Authentication-Results: smtp2h.mail.yandex.net; dkim=pass header.i=@yandex.ru Message-ID: <53FB5014.40402@yandex.ru> Date: Mon, 25 Aug 2014 19:02:44 +0400 From: "Andrey V. Elsukov" User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: Marcel Moolenaar Subject: Re: mkimg used to create gpt image, problem booting References: <853B0396-2C19-49DF-A8E8-8EB43D107597@xcllnt.net> <7CE168C1-6AF3-4AD2-80DB-192AEC49FD2B@xcllnt.net> <53F9AC50.1000000@yandex.ru> <82000B55-10E5-4348-9F35-38962965A63C@xcllnt.net> <20140824233143.GQ71691@funkthat.com> <3AC10D0D-2BD8-4D30-A033-7EE9D923F408@xcllnt.net> <53FAEA31.1070108@yandex.ru> In-Reply-To: X-Enigmail-Version: 1.6 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Craig Rodrigues , John-Mark Gurney , freebsd-current Current X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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: Mon, 25 Aug 2014 15:03:39 -0000 On 25.08.2014 18:40, Marcel Moolenaar wrote: >> Also, now FreeBSD 11.0 uses different first usable LBA. By default it is >> 4k aligned. And this creates some incompatibility with older versions. >> You can't do `gpart restore` and get the same table, as you had on older >> system. > > It sounds restore is broken then. The restore command > cannot ever assume anything about the GPT. Including > the tool that created the GPT. In order to restore a > GPT, it must be properly backed-up. The backup header > and table should suffice most of the time for that > purpose as it's a replica, but as soon as meta-data is > missing and the restore command has to guess, things > will go wrong. `gpart restore` just uses a number of commands to geom_part(4) to create partition table similar to what was backed up. If your partition table on the old system had a partition that starts from LBA 34, now `gpart create` isn't able to create such partition table. Because by default the first usable LBA is 40. -- WBR, Andrey V. Elsukov