From owner-freebsd-stable@FreeBSD.ORG Tue Mar 30 15:45:38 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 A72FD106564A for ; Tue, 30 Mar 2010 15:45:38 +0000 (UTC) (envelope-from bu7cher@yandex.ru) Received: from forward9.mail.yandex.net (forward9.mail.yandex.net [77.88.61.48]) by mx1.freebsd.org (Postfix) with ESMTP id 5305F8FC15 for ; Tue, 30 Mar 2010 15:45:38 +0000 (UTC) Received: from web103.yandex.ru (web103.yandex.ru [77.88.61.4]) by forward9.mail.yandex.net (Yandex) with ESMTP id 4BFF11900059; Tue, 30 Mar 2010 19:44:11 +0400 (MSD) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1269963851; bh=/DTGzhUsKnoznFP3rxe19Bx3VEDXEw7G0aYPI/Cs28Y=; h=From:To:Cc:In-Reply-To:References:Subject:MIME-Version:Message-Id: Date:Content-Transfer-Encoding:Content-Type; b=cit95XLpTohXPfZ17zthf8votW3BUFDxlO0+DF1OcV+5heG5hUj1WqMfwcSBT69Sj uyG4+FgemX+dXJK/8VDsKCuT1oFQzKlG8BCWfSAQ99kRm8gZ9bpx51qSerJbbEuASP g7kwY5+S2REG2fSpywsj5rmL7Sg8Vf85ISMh7T1Y= Received: from localhost (localhost.localdomain [127.0.0.1]) by web103.yandex.ru (Yandex) with ESMTP id 3F5D01D5808C; Tue, 30 Mar 2010 19:44:11 +0400 (MSD) X-Yandex-Spam: 1 X-Yandex-Front: web103.yandex.ru X-Yandex-TimeMark: 1269963851 Received: from ns.heavennet.ru (ns.heavennet.ru [77.72.136.193]) by mail.yandex.ru with HTTP; Tue, 30 Mar 2010 19:44:10 +0400 From: Andrey V. Elsukov To: Daniel Braniss In-Reply-To: References: <4BB1CE95.2090502@yandex.ru> MIME-Version: 1.0 Message-Id: <73161269963850@web103.yandex.ru> Date: Tue, 30 Mar 2010 19:44:10 +0400 X-Mailer: Yamail [ http://yandex.ru ] 5.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain 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:45:38 -0000 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. -- WBR, Andrey V. Elsukov