From owner-freebsd-stable@FreeBSD.ORG Tue Mar 30 15:50:33 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 99A20106566C for ; Tue, 30 Mar 2010 15:50:33 +0000 (UTC) (envelope-from njm@njm.me.uk) Received: from smtp004.apm-internet.net (smtp004.apm-internet.net [85.119.248.54]) by mx1.freebsd.org (Postfix) with SMTP id 095418FC0C for ; Tue, 30 Mar 2010 15:50:32 +0000 (UTC) Received: (qmail 45130 invoked from network); 30 Mar 2010 15:50:31 -0000 Received: from unknown (HELO oberon.njm.me.uk) (86.140.74.12) by smtp004.apm-internet.net with SMTP; 30 Mar 2010 15:50:31 -0000 Received: from titania.njm.me.uk (titania.njm.me.uk [192.168.144.130]) by oberon.njm.me.uk (8.14.4/8.14.4) with ESMTP id o2UFoUx7038884; Tue, 30 Mar 2010 16:50:30 +0100 (BST) (envelope-from njm@njm.me.uk) Received: from titania.njm.me.uk (localhost [127.0.0.1]) by titania.njm.me.uk (8.14.4/8.14.4) with ESMTP id o2UFoUh3033559; Tue, 30 Mar 2010 16:50:30 +0100 (BST) (envelope-from njm@njm.me.uk) Received: (from njm@localhost) by titania.njm.me.uk (8.14.4/8.14.4/Submit) id o2UFoUH9033552; Tue, 30 Mar 2010 16:50:30 +0100 (BST) (envelope-from njm@njm.me.uk) Date: Tue, 30 Mar 2010 16:50:30 +0100 From: "N.J. Mann" To: "Andrey V. Elsukov" Message-ID: <20100330155030.GA6139@titania.njm.me.uk> Mail-Followup-To: "Andrey V. Elsukov" , Daniel Braniss , freebsd-stable@freebsd.org References: <4BB1CE95.2090502@yandex.ru> <73161269963850@web103.yandex.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <73161269963850@web103.yandex.ru> X-Operating-System: FreeBSD 7.3-STABLE User-Agent: mutt-NJM (2009-12-30) Cc: freebsd-stable@freebsd.org Subject: Re: Re: boot and boot0cfg problem X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Mar 2010 15:50:33 -0000 In message <73161269963850@web103.yandex.ru>, Andrey V. Elsukov (bu7cher@yandex.ru) wrote: > 30.03.10, 14:03, "Daniel Braniss" : > > > > On 30.03.2010 12:05, Daniel Braniss wrote: > > > > so it seems that someone is preventing changes to the partition table! > > > > btw, this problem was not present in older boot0 (1.0) where the active > > > > partition flag is ignored. > > > > > > You can change active partition via gpart(8). > > > > > Hi Andrey, > > I'm sorry, I've reread the manual, and can't find the write magic. > > Yes, i also doesn't remember where it can be read. Only in g_part_mbr.c :) > Try this: > # gpart set -a active -i 1 ada2 > This will set active first partition on ada2: > # gpart show ada2 > => 63 1250263665 ada2 MBR (596G) > 63 40965687 1 !7 [active] (20G) > 40965750 1209292875 2 !7 (577G) > 1250258625 5103 - free - (2.5M) > > > btw, boot0cfg does call geom but something seems to be broken. > I'll look boot0cfg code today and probably made a patch. Do you need to disable the geom anti-foot-shooting feature? I seem to remember it is something like: sysctl kern.geom.debugflags=16 Cheers, Nick. --