From owner-freebsd-embedded@FreeBSD.ORG Fri Aug 7 16:32:11 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 DFF151065670 for ; Fri, 7 Aug 2009 16:32:11 +0000 (UTC) (envelope-from jhein@timing.com) Received: from Daffy.timing.com (ns2.timing.com [206.168.13.218]) by mx1.freebsd.org (Postfix) with ESMTP id A9D2C8FC20 for ; Fri, 7 Aug 2009 16:32:11 +0000 (UTC) Received: from gromit.timing.com (gromit.timing.com [206.168.13.209]) by Daffy.timing.com (8.13.1/8.13.1) with ESMTP id n77Fa9gJ062047; Fri, 7 Aug 2009 09:36:09 -0600 (MDT) (envelope-from jhein@timing.com) Received: from gromit.timing.com (localhost [127.0.0.1]) by gromit.timing.com (8.14.3/8.14.3) with ESMTP id n77Fa7Ui013052; Fri, 7 Aug 2009 09:36:07 -0600 (MDT) (envelope-from jhein@gromit.timing.com) Received: (from jhein@localhost) by gromit.timing.com (8.14.3/8.14.3/Submit) id n77Fa7PU013046; Fri, 7 Aug 2009 09:36:07 -0600 (MDT) (envelope-from jhein) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Message-ID: <19068.18919.843159.936827@gromit.timing.com> Date: Fri, 7 Aug 2009 09:36:07 -0600 From: John Hein To: Olivier =?iso-8859-1?Q?Cochard-Labb=E9?= In-Reply-To: <3131aa530908070809l2ac13931xf65981db6eeb83e8@mail.gmail.com> References: <3131aa530908070809l2ac13931xf65981db6eeb83e8@mail.gmail.com> X-Mailer: VM 8.0.12 under 22.3.1 (i386-portbld-freebsd7.1) X-Virus-Scanned: ClamAV version 0.91.2, clamav-milter version 0.91.2 on Daffy.timing.com X-Virus-Status: Clean 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:32:12 -0000 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 sli= ce 2. >=20 > Then I use boot0cfg like that: >=20 > sysctl kern.geom.debugflags=3D16 > boot0cfg -s 2 -v /dev/ad0 > sysctl kern.geom.debugflags=3D0 >=20 > But, after the reboot my system still reboot from the slice 1 (but t= he > boot loader show correctly that the default choice is now the 2)! > Where is my problem =3F Are you sure you're booting from slice 1=3F Is fstab on slice 2 pointing to slice 1=3F