From owner-freebsd-embedded@FreeBSD.ORG Fri Aug 7 16:47:48 2009 Return-Path: Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D1EC3106564A for ; Fri, 7 Aug 2009 16:47:48 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 8EE0A8FC19 for ; Fri, 7 Aug 2009 16:47:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id n77GhOYT013495; Fri, 7 Aug 2009 10:43:24 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Fri, 07 Aug 2009 10:44:14 -0600 (MDT) Message-Id: <20090807.104414.221852486.imp@bsdimp.com> To: jhein@timing.com From: "M. Warner Losh" In-Reply-To: <19068.18919.843159.936827@gromit.timing.com> References: <3131aa530908070809l2ac13931xf65981db6eeb83e8@mail.gmail.com> <19068.18919.843159.936827@gromit.timing.com> X-Mailer: Mew version 5.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-embedded@freebsd.org Subject: Re: [NanoBSD] Can't use boot0cfg for changing the booting slice 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: Fri, 07 Aug 2009 16:47:49 -0000 In message: <19068.18919.843159.936827@gromit.timing.com> John Hein writes: : Olivier Cochard-Labb=E9 wrote at 17:09 +0200 on Aug 7, 2009: : > I meet a problem under FreeBSD 7.2 and 8.0-current (nanoBSD) using= : > boot0cfg: I can't use boot0cfg for changing the booting slice. : > Here is my problem: : > I'm using the FreeBSD Boot manager on a system with MBR partitions= .= : > The active slice is the partition 1, but I want to boot from the s= lice 2. : > = : > Then I use boot0cfg like that: : > = : > sysctl kern.geom.debugflags=3D16 : > boot0cfg -s 2 -v /dev/ad0 : > sysctl kern.geom.debugflags=3D0 : > = : > But, after the reboot my system still reboot from the slice 1 (but= the : > boot loader show correctly that the default choice is now the 2)! : > Where is my problem ? : = : Are you sure you're booting from slice 1? : Is fstab on slice 2 pointing to slice 1? Also, boot0cfg won't mark the slice as ACTIVE, just remember that was the last slice you booted from... To mark it active, you must use fdisk. If by 'active' you mean 'what mount reports root as' then I think John's suggestion is right on the money... Warner