From owner-freebsd-questions@FreeBSD.ORG Sun Nov 25 14:11:06 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D929447A for ; Sun, 25 Nov 2012 14:11:06 +0000 (UTC) (envelope-from lbc@bnrlabs.com) Received: from smtp3-g21.free.fr (smtp3-g21.free.fr [IPv6:2a01:e0c:1:1599::12]) by mx1.freebsd.org (Postfix) with ESMTP id 2F5AF8FC08 for ; Sun, 25 Nov 2012 14:11:04 +0000 (UTC) Received: from mail.bnrlabs.com (unknown [82.224.61.5]) by smtp3-g21.free.fr (Postfix) with ESMTP id BFFF1A622A for ; Sun, 25 Nov 2012 15:10:59 +0100 (CET) Received: from [127.0.0.1] (unknown [172.20.96.112]) by mail.bnrlabs.com (Postfix) with ESMTP id F278846072 for ; Sun, 25 Nov 2012 15:10:57 +0100 (CET) Message-ID: <50B226F3.2000207@bnrlabs.com> Date: Sun, 25 Nov 2012 15:10:59 +0100 From: "Lucas B. Cohen" MIME-Version: 1.0 CC: freebsd-questions@freebsd.org Subject: Wheres the FreeBSD PBR ? (was Re: Manually partitioning using gpart / wh) References: <1353842774.2508.18.camel@q> <50B20FD9.9070405@bnrlabs.com> <1353848249.2508.41.camel@q> <50B2197C.2040003@bnrlabs.com> <1353850537.2508.66.camel@q> In-Reply-To: <1353850537.2508.66.camel@q> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Nov 2012 14:11:06 -0000 On 2012.11.25 14:35, Ralf Mardorf wrote: > I don't need it, but I could add it for what ever worst case emergency > scenario and GRUB in the MBR anyway will work? I don't see how it could ever come in handy, and I'm not sure it wouldn't do any hamr either. The /boot/gptboot code to be written weighs 15kB, that could be big enough to mess up the filesystem on the partition. That /boot/gptboot code is designed to work on a special-purpose small GPT partition that doesn't hold a filesystem. So I would refrain from doing it. It would be useful for emergency purposes to write MBR-partition scheme-compatible bootcode to that partition instead, but I've yet to find out how to do it. gpart(8) seems to have the ability to do it, but it's manual page doesn't mention what file to pass to its -p option to do that. Maybe it's one of those /boot/boot1 or /boot/boot2 files I'm seeing on my system. Maybe someone can enlighten me on that.