From owner-freebsd-questions@freebsd.org Sat Jun 25 02:06:14 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2F97EB73B4A for ; Sat, 25 Jun 2016 02:06:14 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id ED5202D91 for ; Sat, 25 Jun 2016 02:06:13 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id u5P26667028400 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 24 Jun 2016 20:06:06 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id u5P2663f028397; Fri, 24 Jun 2016 20:06:06 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Fri, 24 Jun 2016 20:06:06 -0600 (MDT) From: Warren Block To: Vladislav Prodan cc: perikillo , FreeBSD Mailing List Subject: Re[2]: Re[2]: Re[2]: Copy bootcode to mirror disk? In-Reply-To: <1466729245.746791331.emrr9dyu@frv35.fwdcdn.com> Message-ID: References: <1466717892.674545627.ai2dh1w6@frv35.fwdcdn.com> <1466725107.953028829.tc1fmx6e@frv35.fwdcdn.com> <1466728696.778596880.0qwmo21g@frv35.fwdcdn.com> <1466729245.746791331.emrr9dyu@frv35.fwdcdn.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Fri, 24 Jun 2016 20:06:06 -0600 (MDT) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Jun 2016 02:06:14 -0000 On Fri, 24 Jun 2016, Vladislav Prodan wrote: > > > https://www.freebsd.org/doc/handbook/geom-mirror.html > > Make the mirror bootable by installing bootcode in the MBR and bsdlabel and setting the active slice: > > # gpart bootcode -b /boot/mbr mirror/gm0 > # gpart set -a active -i 1 mirror/gm0 > # gpart bootcode -b /boot/boot mirror/gm0s1 That is only valid for a GPT disk. The problem is that the boot partition is mirrored. The bootcode can probably be written to mirror/boot. However, as I said on the forums to this very same thread, the real error here is having mirrored GPT partitions.