Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 15 Sep 2012 12:03:38 -0700
From:      Garrett Cooper <yanegomi@gmail.com>
To:        Benjamin Kaduk <kaduk@mit.edu>
Cc:        freebsd-hackers@freebsd.org, "Julian H. Stacey" <jhs@berklix.com>
Subject:   Re: Why fdisk can't open root disk with MBR for writing?
Message-ID:  <CAGH67wQ-wdPdTuMnRWBmK41GK6rZy5X2c27NOVrvYfLQSM3T1Q@mail.gmail.com>
In-Reply-To: <alpine.GSO.1.10.1209151448200.861@multics.mit.edu>
References:  <201209151322.q8FDMobF058992@fire.js.berklix.net> <alpine.GSO.1.10.1209151448200.861@multics.mit.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 15, 2012 at 11:49 AM, Benjamin Kaduk <kaduk@mit.edu> wrote:
> On Sat, 15 Sep 2012, Julian H. Stacey wrote:
>
>> I have been applying this diff to my man fdisk:
>>
>> http://berklix.com/~jhs/src/bsd/fixes/FreeBSD/src/gen/sbin/fdisk/
>>
>> *** 8.0-RELEASE/src/sbin/fdisk/fdisk.8  Sat Mar 14 22:32:16 2009
>> --- new-generic/src/sbin/fdisk/fdisk.8  Sat Mar 14 22:35:10 2009
>> ***************
>> *** 462,464 ****
>> --- 462,468 ----
>>  The
>>  .Xr bsdlabel 8
>>  command must be used for this.
>> + .Pp
>> + When running multi user, you cannot write unless you first run this:
>> + .br
>> + sysctl kern.geom.debugflags=16
>>
>> I never submitted it as a send-pr,
>> anyone think I should submit it to help save people ?
>
> We have had a long discussion about kern.geom.debugflags starting here:
> http://lists.freebsd.org/pipermail/freebsd-current/2011-October/028090.html
> My understanding from that discussion is that your patch should not be
> accepted.

    Correct. Either fdisk should be fixed or updated to point out that
gpart should be used. There is some useful utility for fdisk still,
but it's waning.
Thanks,
-Garrett



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