From owner-freebsd-current Wed Dec 25 13:12:30 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 488DD37B401 for ; Wed, 25 Dec 2002 13:12:29 -0800 (PST) Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4A62B43EB2 for ; Wed, 25 Dec 2002 13:12:28 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.12.6/8.12.6) with ESMTP id gBPLCCIn025631; Wed, 25 Dec 2002 22:12:17 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Craig Rodrigues Cc: Kris Kennaway , freebsd-current@FreeBSD.ORG Subject: Re: Cannot open "/dev/ad0" on -CURRENT From: phk@FreeBSD.ORG In-Reply-To: Your message of "Wed, 25 Dec 2002 16:08:33 EST." <20021225210833.GA12496@attbi.com> Date: Wed, 25 Dec 2002 22:12:12 +0100 Message-ID: <25630.1040850732@critter.freebsd.dk> 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 In message <20021225210833.GA12496@attbi.com>, Craig Rodrigues writes: >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. Correct. Use "disklabel -e ad0s1" -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message