From owner-freebsd-stable@FreeBSD.ORG Wed Mar 2 03:20:04 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0E2616A4CE for ; Wed, 2 Mar 2005 03:20:04 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A2F943D3F for ; Wed, 2 Mar 2005 03:20:04 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id 6A98372DD4; Tue, 1 Mar 2005 19:20:04 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id 6520872DCB; Tue, 1 Mar 2005 19:20:04 -0800 (PST) Date: Tue, 1 Mar 2005 19:20:04 -0800 (PST) From: Doug White To: David Wolfskill In-Reply-To: <20050301170049.GB5862@bunrab.catwhisker.org> Message-ID: <20050301191820.N72408@carver.gumbysoft.com> References: <20050301170049.GB5862@bunrab.catwhisker.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: stable@freebsd.org Subject: Re: "ioctl DIOCSMBR: Operation not permitted" from "boot0cfg -s 1" X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Mar 2005 03:20:04 -0000 On Tue, 1 Mar 2005, David Wolfskill wrote: > On a couple of machines here (my laptop and an SMP "build machine"), I > track each of RELENG_4 and RELENG_5 on a daily basis. I do this by > using separate bootable slices. > > As a consequence of doing things this way, I have become accustomed to > using boot0cfg to switch the default boot slice when I need to do this > (which is usually twice daily per machine). > > I know of no problems doing this with RELENG_4 in the past, nor with > RELENG_5 (since that tag was laid down, of course -- there had been an > issue with 5.x when it was -CURRENT back in the earlier days of GEOM, > but that was un-broken withiin a few days -- up through Sunday (27 Feb). > > This morning, I got through building & booting 5.4-PRERELEASE OK, so I > tried switching back to slice 1 (where I have RELENG_4 living). This is > what I saw: > > freebeast(5.4-P)[1] sudo boot0cfg -s 1 -v ad0 > Password: > boot0cfg: /dev/ad0: ioctl DIOCSMBR: Operation not permitted > freebeast(5.4-P)[2] This is a GEOM safety feature. Set sysctl kern.geom.debugflags=16 to disable the safety, but you can very easily spam any mounted volumes this way. Use at your own risk :) -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org