From owner-freebsd-stable@FreeBSD.ORG Fri Dec 27 15:42:15 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A6F63D32; Fri, 27 Dec 2013 15:42:15 +0000 (UTC) Received: from prod2.absolight.net (mx3.absolight.net [IPv6:2a01:678:2:100::25]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5FF5D1887; Fri, 27 Dec 2013 15:42:15 +0000 (UTC) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id ACD1CBDC64; Fri, 27 Dec 2013 16:42:13 +0100 (CET) Received: from gw.in.absolight.net (gw-ecl.in.absolight.net [79.143.241.69]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "gw.in.absolight.net", Issuer "CA Cert Signing Authority" (not verified)) by prod2.absolight.net (Postfix) with ESMTPSA id 7DAB2BDC5D; Fri, 27 Dec 2013 16:42:13 +0100 (CET) Received: from ogg.in.absolight.net (ogg.in.absolight.net [79.143.241.239]) by gw.in.absolight.net (Postfix) with ESMTP id E58AE6140; Fri, 27 Dec 2013 16:42:12 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ogg.in.absolight.net (Postfix) with ESMTP id 7210A6702373; Fri, 27 Dec 2013 16:42:12 +0100 (CET) Date: Fri, 27 Dec 2013 16:42:12 +0100 From: Mathieu Arnold To: Thomas Hoffmann Subject: Re: FreeBSD 10.0-RC3 Now Available Message-ID: <38B0C411B75D7482B92033D2@ogg.in.absolight.net> In-Reply-To: References: <20131226162521.GK2009@glenbarber.us> <20131226212158.GD13109@glenbarber.us> <2F6DABD655B7C3230EC0F15D@ogg.in.absolight.net> X-Mailer: Mulberry/4.0.8 (Mac OS X) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Cc: freebsd-current , freebsd-stable@freebsd.org X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 27 Dec 2013 15:42:15 -0000 +--On 27 d=C3=A9cembre 2013 10:28:07 -0500 Thomas Hoffmann = wrote: | All the examples I've seen for updating bootcode assume GPT. If one has | MBR (as I do) and assuming the following basic scheme: |=20 | gpart show ada0 | =3D> 63 976773105 ada0 MBR (466G) | 63 976773105 1 freebsd [active] (466G) |=20 | gpart show ada0s1 | =3D> 0 976773105 ada0s1 BSD (466G) | 0 943218736 1 freebsd-zfs (450G) | 943218736 33554369 2 freebsd-swap (16G) |=20 | would the equivalent bootcode statement be: |=20 | gpart bootcode -b /boot/pmbr -p /boot/zfsboot ada0s1 |=20 | where the boot code is /boot/zfsboot (rather than /boot/gptzfsboot) and | ada0s1 is the slice on which FreeBSD is installed? Hum, no, if you're using MBR and not GPT, you can't use gpart, you have to do something aweful like this : # dd if=3D/boot/zfsboot of=3D/dev/ada0 count=3D1 # sysctl kern.geom.debugflags=3D0x10 # dd if=3D/boot/zfsboot of=3D/dev/ada0 skip=3D1 seek=3D1024 might be ada0s1 and not ada0, or something (please, don't do that unless you're sure you're doing it right.) --=20 Mathieu Arnold