Date: Fri, 27 Dec 2013 16:42:12 +0100 From: Mathieu Arnold <mat@FreeBSD.org> To: Thomas Hoffmann <trh411@gmail.com> Cc: freebsd-current <freebsd-current@freebsd.org>, freebsd-stable@freebsd.org Subject: Re: FreeBSD 10.0-RC3 Now Available Message-ID: <38B0C411B75D7482B92033D2@ogg.in.absolight.net> In-Reply-To: <CAB7-odmH-b=%2B_-BwF1jt7EMdTxpK-P%2Bw%2Bp6Ce9-k7mRvXpLzog@mail.gmail.com> References: <20131226162521.GK2009@glenbarber.us> <CA%2BWntOt26JXT3Bh8ccSM-fQ726c2Hy3F06n2iDbu3pLBXjn-AA@mail.gmail.com> <20131226212158.GD13109@glenbarber.us> <CACuV5sCjjsjFK9AjJ7saRPpDktwxf1rd6a-M2FKXXYf-EaBy2w@mail.gmail.com> <BCB09816844D0B52B1EFE964@atuin.in.mat.cc> <CACuV5sD2Cw=iZ=uE8BjcV6j8-Bc8ppChQ=ZPKZ7uFTXQLmhCxQ@mail.gmail.com> <2F6DABD655B7C3230EC0F15D@ogg.in.absolight.net> <CAB7-odmH-b=%2B_-BwF1jt7EMdTxpK-P%2Bw%2Bp6Ce9-k7mRvXpLzog@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
+--On 27 décembre 2013 10:28:07 -0500 Thomas Hoffmann <trh411@gmail.com> 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: | | gpart show ada0 | => 63 976773105 ada0 MBR (466G) | 63 976773105 1 freebsd [active] (466G) | | gpart show ada0s1 | => 0 976773105 ada0s1 BSD (466G) | 0 943218736 1 freebsd-zfs (450G) | 943218736 33554369 2 freebsd-swap (16G) | | would the equivalent bootcode statement be: | | gpart bootcode -b /boot/pmbr -p /boot/zfsboot ada0s1 | | 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=/boot/zfsboot of=/dev/ada0 count=1 # sysctl kern.geom.debugflags=0x10 # dd if=/boot/zfsboot of=/dev/ada0 skip=1 seek=1024 might be ada0s1 and not ada0, or something (please, don't do that unless you're sure you're doing it right.) -- Mathieu Arnold
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?38B0C411B75D7482B92033D2>
