From owner-freebsd-geom@FreeBSD.ORG Mon Nov 30 12:45:28 2009 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EC401106566C for ; Mon, 30 Nov 2009 12:45:28 +0000 (UTC) (envelope-from gcubfg-freebsd-geom@m.gmane.org) Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mx1.freebsd.org (Postfix) with ESMTP id A7AB28FC12 for ; Mon, 30 Nov 2009 12:45:28 +0000 (UTC) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NF5d9-0002Vx-Lz for freebsd-geom@freebsd.org; Mon, 30 Nov 2009 13:45:27 +0100 Received: from lara.cc.fer.hr ([161.53.72.113]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Nov 2009 13:45:27 +0100 Received: from ivoras by lara.cc.fer.hr with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 30 Nov 2009 13:45:27 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-geom@freebsd.org From: Ivan Voras Date: Mon, 30 Nov 2009 13:45:18 +0100 Lines: 40 Message-ID: References: <20091130123312.GA26031@zibbi.meraka.csir.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: lara.cc.fer.hr User-Agent: Thunderbird 2.0.0.23 (X11/20090928) In-Reply-To: <20091130123312.GA26031@zibbi.meraka.csir.co.za> Sender: news Subject: Re: strange geom interaction on 8.0? X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Nov 2009 12:45:29 -0000 John Hay wrote: > Hi, > > On our Avila (arm) boxes we use a compact flash with 2 FreeBSD partitions > made with fdisk. When we upgrade, we prepare the non active partition, > change the active bit and reboot into the new partition. This worked well > on FreeBSD 7.2-stable. But on 8.0 it does not want to work. I get > something like this: > > ############################# > agter:~ # fdisk -s ad0 > /dev/ad0: 1966 cyl 16 hd 63 sec > Part Start Size Type Flags > 1: 63 989793 0xa5 0x80 > 2: 990864 990864 0xa5 0x00 > agter:~ # echo "a 2" | fdisk -f - ad0 > ******* Working on device /dev/ad0 ******* > fdisk: Class not found > agter:~ # fdisk -s ad0 > /dev/ad0: 1966 cyl 16 hd 63 sec > Part Start Size Type Flags > 1: 63 989793 0xa5 0x00 > 2: 990864 990864 0xa5 0x80 > agter:~ # reboot > /sbin/reboot: Device not configured. > agter:~ # > ############################# > > Basically it looks like non of the commands that has not been executed > want to execute. Just changing the active bit back does not help. > > Can it be some interaction of the geom modules that are now standard > in 8.0? > > "kldstat -v | grep g_part" show these two: > 74 g_part_mbr > 73 g_part_bsd Basically, fdisk and disklabel should not be used on 8.x anymore, try using gpart instead.