From owner-freebsd-hackers@FreeBSD.ORG Sat Sep 15 19:03:41 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1BF2E106566B for ; Sat, 15 Sep 2012 19:03:41 +0000 (UTC) (envelope-from yanegomi@gmail.com) Received: from mail-oa0-f54.google.com (mail-oa0-f54.google.com [209.85.219.54]) by mx1.freebsd.org (Postfix) with ESMTP id CE6118FC0C for ; Sat, 15 Sep 2012 19:03:40 +0000 (UTC) Received: by oagm1 with SMTP id m1so4642110oag.13 for ; Sat, 15 Sep 2012 12:03:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=RzVxMt31Buoxn5YtMW4OoqkhDHlISvpWe+W8iy8Zhvw=; b=RxYF3wCNcY/iUsGcoWLEfRlbwwE+h9PDI8bgAe3J2Io6cgaOMpbhwoCESMkG4GoRgV gbc00kXfSLXxbHijMNyoaWsNknqrJa+vwLKVSSHtIqQI6r41182jehrsyPFpNBy6DPKU tujg0pwkPMBFe1LxDPLIN1MgkujY3YMbvPAEH+MGyakUU1obsv2jDNh5Q9ez4Sdq6oXT wxqFc9nwGfOSgkDU7lpZyR3yhOiOWZbYaVySIZLiWrL+fMJr0fNCibVniLxH/XHTPOXH QLejzvSwweLYxc3R7LNDyTalqRRO1fNBiiCfDyyPJoDe0GIZo2qAlMqmm5btLROKdmgn m8Ug== MIME-Version: 1.0 Received: by 10.60.13.232 with SMTP id k8mr7824661oec.81.1347735819019; Sat, 15 Sep 2012 12:03:39 -0700 (PDT) Received: by 10.76.142.201 with HTTP; Sat, 15 Sep 2012 12:03:38 -0700 (PDT) In-Reply-To: References: <201209151322.q8FDMobF058992@fire.js.berklix.net> Date: Sat, 15 Sep 2012 12:03:38 -0700 Message-ID: From: Garrett Cooper To: Benjamin Kaduk Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org, "Julian H. Stacey" Subject: Re: Why fdisk can't open root disk with MBR for writing? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Sep 2012 19:03:41 -0000 On Sat, Sep 15, 2012 at 11:49 AM, Benjamin Kaduk 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