Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Jul 2010 15:57:45 +0200
From:      Dimitry Andric <dimitry@andric.com>
To:        Daniel O'Connor <doconnor@gsoft.com.au>
Cc:        FreeBSD Stable <freebsd-stable@freebsd.org>
Subject:   Re: GEOM/bsdlabel regression in 8.x?
Message-ID:  <4C309359.8000502@andric.com>
In-Reply-To: <BC67251C-1621-4291-B0C1-A28CC404E417@gsoft.com.au>
References:  <BC67251C-1621-4291-B0C1-A28CC404E417@gsoft.com.au>

next in thread | previous in thread | raw e-mail | index | archive | help
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. :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C309359.8000502>