From owner-freebsd-questions@FreeBSD.ORG Mon Aug 2 19:39:14 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E008F1065673 for ; Mon, 2 Aug 2010 19:39:14 +0000 (UTC) (envelope-from freebsd-questions@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id 91D5F8FC12 for ; Mon, 2 Aug 2010 19:39:14 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Og0qu-00032w-AA for freebsd-questions@freebsd.org; Mon, 02 Aug 2010 21:39:12 +0200 Received: from 193.33.173.33 ([193.33.173.33]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Aug 2010 21:39:12 +0200 Received: from c.kworr by 193.33.173.33 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 02 Aug 2010 21:39:12 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-questions@freebsd.org From: Volodymyr Kostyrko Date: Mon, 02 Aug 2010 22:39:04 +0300 Lines: 20 Message-ID: <4C571ED8.6010809@gmail.com> References: <118730593.118671280777368624.JavaMail.root@mail-01.cse.ucsc.edu> <1484128131.118691280777381885.JavaMail.root@mail-01.cse.ucsc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 193.33.173.33 User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; uk-UA; rv:1.9.1.11) Gecko/20100722 Thunderbird/3.0.6 In-Reply-To: <1484128131.118691280777381885.JavaMail.root@mail-01.cse.ucsc.edu> Subject: Re: Upgrading Boot Loader X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 Aug 2010 19:39:15 -0000 02.08.2010 22:29, Tim Gustafson написав(ла): >> PS: I've just recently changed my mind and moved from dedicated >> vdevs to gpart. This gives possibility of: >> 1. Having raw swap partition suitable for swapping/dumping. >> 2. Updating bootcode online without loosing uptime. >> Just in expense of some kilobytes of disk space. > > I too am using gpart to partition the drives: ad8 and ad10 are partitioned using gpart. I'm attaching the output of "gpart list" to this e-mail. Is there an easier/better way to upgrade the boot loader with gpart partitions? Then you have no need in zfsboot, you shoud use gptzfsboot instead. gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad8 gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 ad10 This will install Protective MBR to first disk sector and bootcode to first partition. You can backup them just-in-case or update one disk and try to boot from it leaving second as the known to work solution. -- Sphinx of black quartz judge my vow.