Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jun 2004 19:16:12 +0200
From:      Joan Picanyol <lists-freebsd-current@biaix.org>
To:        "'freebsd-current@freebsd.org'" <freebsd-current@freebsd.org>
Subject:   Re: Sysinstall & labels/fdisk
Message-ID:  <20040607171612.GA86565@grummit.biaix.org>
In-Reply-To: <FE045D4D9F7AED4CBFF1B3B813C8533703FFC22D@mail.sandvine.com>
References:  <FE045D4D9F7AED4CBFF1B3B813C8533703FFC22D@mail.sandvine.com>

next in thread | previous in thread | raw e-mail | index | archive | help
* Alex Hoff <ahoff@sandvine.com> [20040607 16:47]:
> I have run in to an odd problem that on a freebsd 5.2 current system after
> running fdisk and disklabel the initial time on install, i am never allowed
> to do it again. 
> 
> What I have tried on many different systems, is to run sysinstall, and
> either run fdisk or label. After making a change and trying to write the
> changes, it will fail. Even if you dont make a change, and just try to write
> the current settings to the disk, it will fail. The following error comes up
> "ERROR: Unable to write data to disk ad0" (if also tried different types of
> disk devices - da/aacd). Ktrace shows the error as "errno 1 Operation not
> permitted"

GEOM won't let you touch MBR/slices/partitions on used devices. For it
to allow footshooting you should set kern.geom.debugflags=16

qvb
-- 
pica



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