From owner-freebsd-current Wed Dec 25 13: 8:26 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2F03937B401; Wed, 25 Dec 2002 13:08:25 -0800 (PST) Received: from h00609772adf0.ne.client2.attbi.com (h00609772adf0.ne.client2.attbi.com [24.61.43.152]) by mx1.FreeBSD.org (Postfix) with ESMTP id 791B743E4A; Wed, 25 Dec 2002 13:08:24 -0800 (PST) (envelope-from rodrigc@attbi.com) Received: from h00609772adf0.ne.client2.attbi.com (localhost [127.0.0.1]) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6) with ESMTP id gBPL8Yp0012515; Wed, 25 Dec 2002 16:08:34 -0500 (EST) (envelope-from rodrigc@h00609772adf0.ne.client2.attbi.com) Received: (from rodrigc@localhost) by h00609772adf0.ne.client2.attbi.com (8.12.6/8.12.6/Submit) id gBPL8XW9012514; Wed, 25 Dec 2002 16:08:33 -0500 (EST) Date: Wed, 25 Dec 2002 16:08:33 -0500 From: Craig Rodrigues To: Kris Kennaway Cc: freebsd-current@FreeBSD.ORG, phk@FreeBSD.ORG Subject: Re: Cannot open "/dev/ad0" on -CURRENT Message-ID: <20021225210833.GA12496@attbi.com> References: <20021224133110.A14309@attbi.com> <20021225053746.A18667@citusc.usc.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20021225053746.A18667@citusc.usc.edu> User-Agent: Mutt/1.4i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Wed, Dec 25, 2002 at 05:37:46AM -0800, Kris Kennaway wrote: > On Tue, Dec 24, 2002 at 01:31:10PM -0500, Craig Rodrigues wrote: > > > Any ideas what the problem could be? > > geom seems to have anti-foot-shooting measures in place to disallow > access to the disk device when a partition on that disk is open. Are you referring to this in src/sys/geom/geom_bsd.c? 547 /* 548 * If the user tries to overwrite our disklabel through an open partition 549 * or via a magicwrite config call, we end up here and try to prevent 550 * footshooting as best we can. 551 */ 552 static void 553 g_bsd_hotwrite(void *arg) The result of this is that I booted off of a slice contained on the /dev/ad0 disk, then I cannot add new partitions to /dev/ad0 with sysinstall, even if I am root. -- Craig Rodrigues http://www.gis.net/~craigr rodrigc@attbi.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message