re-fdisk'ing a partition - permission denied?

Poul-Henning Kamp phk at phk.freebsd.dk
Thu Sep 11 11:48:52 PDT 2003


In message <20030911183642.GQ22341 at genius.tao.org.uk>, Josef Karthauser writes:
>
>--7UIJfHqpdi+oBJdT
>Content-Type: text/plain; charset=us-ascii
>Content-Disposition: inline
>Content-Transfer-Encoding: quoted-printable
>
>On Tue, Sep 09, 2003 at 05:14:15PM +0200, Poul-Henning Kamp wrote:
>> In message <20030908203049.5FF375D04 at ptavv.es.net>, "Kevin Oberman" write=
>s:
>>=20
>> >In any case, since GEOM was added you can no longer slice or label an
>> >active device. As a result, the only way I know of to change slices or
>> >labels on V5 is to boot off of CD or floppy Fixit disks or install
>> >disks. (I just had to do this on my laptop this morning.)
>>=20
>> If this is the case it is a bug in fdisk(8).
>>=20
>> The only restriction GEOM introduces is that you cannot change an
>> _open_ device.  Anything else is a bug.
>>=20
>
>Change, or update?  It's probable that fdisk is writing the entire
>partition table in one go.  Shouldn't geom be ok it the bit that refers
>to open devices is the same as it was before?

Yes, exactly.

I've put this on my list for when I get home.  If somebody can
make a small shell script which reproduces this, it will be fixed
faster.

-- 
Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
phk at 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.


More information about the freebsd-current mailing list