From owner-freebsd-current@FreeBSD.ORG Sat Feb 21 18:48:43 2009 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 74CCD106566C for ; Sat, 21 Feb 2009 18:48:43 +0000 (UTC) (envelope-from xcllnt@mac.com) Received: from asmtpout019.mac.com (asmtpout019.mac.com [17.148.16.94]) by mx1.freebsd.org (Postfix) with ESMTP id 602F88FC14 for ; Sat, 21 Feb 2009 18:48:43 +0000 (UTC) (envelope-from xcllnt@mac.com) MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=US-ASCII; format=flowed Received: from MacBook-Pro.lan.xcllnt.net (xcllnt.net [75.101.29.67]) by asmtp019.mac.com (Sun Java(tm) System Messaging Server 6.3-7.03 (built Aug 7 2008; 32bit)) with ESMTPSA id <0KFF00GBFIWM3W40@asmtp019.mac.com> for current@freebsd.org; Sat, 21 Feb 2009 10:48:23 -0800 (PST) Message-id: <09A4377D-3275-45CA-AB7B-2C2722B51521@mac.com> From: Marcel Moolenaar To: "Bjoern A. Zeeb" In-reply-to: <20090221082155.T53478@maildrop.int.zabbadoz.net> Date: Sat, 21 Feb 2009 10:48:22 -0800 References: <20090217113718.N53478@maildrop.int.zabbadoz.net> <725CDB16-7D31-42C9-924E-DB6B595BF071@mac.com> <20090221082155.T53478@maildrop.int.zabbadoz.net> X-Mailer: Apple Mail (2.930.3) Cc: FreeBSD current mailing list Subject: Re: boot0cfg -s vs. GEOM_PART_*? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2009 18:48:43 -0000 On Feb 21, 2009, at 12:25 AM, Bjoern A. Zeeb wrote: > Thanks. I see boot0cfg no longer errors but I am not sure if it does > the right thing: > > boot0cfg -s 5 ad0 > (doesn't atter if it's 0 or 2 to the -s options) as boot0cfg -s doesn't set the active flag on partitions. It changes some magic offset in the boot code that is being interpreted by the boot code. > That leaves me to the question - what's the boot0cfg -s5 equivalent > with gpart? There's no equivalent to the -s option, because gpart doesn't interpret or understand the boot code. You can change the active partition with gpart though: # gpart set -a active -i ad0 FYI, -- Marcel Moolenaar xcllnt@mac.com