Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 Dec 2002 22:12:12 +0100
From:      phk@FreeBSD.ORG
To:        Craig Rodrigues <rodrigc@attbi.com>
Cc:        Kris Kennaway <kris@obsecurity.org>, freebsd-current@FreeBSD.ORG
Subject:   Re: Cannot open "/dev/ad0" on -CURRENT 
Message-ID:  <25630.1040850732@critter.freebsd.dk>
In-Reply-To: Your message of "Wed, 25 Dec 2002 16:08:33 EST." <20021225210833.GA12496@attbi.com> 

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




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