From owner-freebsd-stable@FreeBSD.ORG Sun Jul 4 13:57:44 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 6F7F21065D8E for ; Sun, 4 Jul 2010 13:57:44 +0000 (UTC) (envelope-from dimitry@andric.com) Received: from tensor.andric.com (cl-327.ede-01.nl.sixxs.net [IPv6:2001:7b8:2ff:146::2]) by mx1.freebsd.org (Postfix) with ESMTP id 3222A8FC15 for ; Sun, 4 Jul 2010 13:57:44 +0000 (UTC) Received: from [IPv6:2001:7b8:3a7:0:7153:b6b4:eb9a:638a] (unknown [IPv6:2001:7b8:3a7:0:7153:b6b4:eb9a:638a]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by tensor.andric.com (Postfix) with ESMTPSA id 3AD7D5C43; Sun, 4 Jul 2010 15:57:41 +0200 (CEST) Message-ID: <4C309359.8000502@andric.com> Date: Sun, 04 Jul 2010 15:57:45 +0200 From: Dimitry Andric User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.9.2.8pre) Gecko/20100703 Lanikai/3.1.1pre MIME-Version: 1.0 To: Daniel O'Connor References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: FreeBSD Stable Subject: Re: GEOM/bsdlabel regression in 8.x? 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: Sun, 04 Jul 2010 13:57:44 -0000 On 2010-07-04 14:24, Daniel O'Connor wrote: ... > mkdir /mnt/test > mount /dev/md0s1a /mnt/test > bsdlabel -e /dev/md0s1 > > Then you get.. > "bsdlabel: Class not found" First unmount /dev/md0s1a, or the device /dev/md0s1 will be in use, and opening it for read/write (as bsdlabel probably does) will fail. Alternatively, you can turn on the "footshooting" debug flag in geom: Protection mechanisms in the geom(4) subsystem might prevent boot0cfg from being able to update the MBR on a mounted disk. Instructions for temporarily disabling these protection mechanisms can be found in the geom(4) manpage. Specifically, do a sysctl kern.geom.debugflags=0x10 to allow writing to the MBR, and restore it to 0 afterwards. and try again. This may not work as expected though. :)