From owner-freebsd-embedded@FreeBSD.ORG Wed Aug 17 08:08:32 2011 Return-Path: Delivered-To: embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F492106566B for ; Wed, 17 Aug 2011 08:08:32 +0000 (UTC) (envelope-from uffe@uffe.org) Received: from mail.starion.dk (mx0.starion.dk [93.162.70.34]) by mx1.freebsd.org (Postfix) with SMTP id 5C0E68FC15 for ; Wed, 17 Aug 2011 08:08:30 +0000 (UTC) Received: (qmail 56602 invoked by uid 1004); 17 Aug 2011 07:41:53 -0000 Message-ID: <4E4B6E39.6030008@uffe.org> Date: Wed, 17 Aug 2011 09:31:05 +0200 From: Uffe Jakobsen X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; DSN=0; uuencode=0 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110617 Lightning/1.0b2 Mnenhy/0.8.3 Thunderbird/3.1.11 MIME-Version: 1.0 To: embedded@freebsd.org References: <4874688C-7D3D-428D-B654-C500A4F61DA2@develooper.com> In-Reply-To: <4874688C-7D3D-428D-B654-C500A4F61DA2@develooper.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Cc: Subject: Re: "gpart set -a active" not changing boot loader X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2011 08:08:32 -0000 On 2011-08-16 20:16, Ask Bjørn Hansen wrote: > > # gpart set -a active -i 2 ad0 > active set on ad0s2 > > `gpart show` confirms that it was done. > > However, when booting I get: > > 1 FreeBSD > 2 FreeBSD > > Default: 1 > > … and `gpart show` now shows the first partition as the active one. > > Is my boot loader too old or some such? This is a NanoBSD system that might have been upgraded since some 6.x version. > boot0 setting and the active partition mark in the partition table is having the usual disagreements... I've never come around to get the completely picture of the problem - but see the problem it quite ofent. Display boot0 settings: boot0cfg -v /dev/ad0 Update boot0 settings to reflect your gpart wish: boot0cfg -v -s 2 /dev/ad0 /Uffe