From owner-freebsd-current@FreeBSD.ORG Sun Oct 23 21:54:29 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A44D71065675; Sun, 23 Oct 2011 21:54:29 +0000 (UTC) (envelope-from lacombar@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 174738FC13; Sun, 23 Oct 2011 21:54:28 +0000 (UTC) Received: by wyi40 with SMTP id 40so7191310wyi.13 for ; Sun, 23 Oct 2011 14:54:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=phqavS7bPsdmbSb/pGRywCZIAV1KdIDaF65e4WiQoqM=; b=e4EBpxsnYEVfGaVHakFR10B5vuWPGLkQ3GlcxpKQ6JcrEtJE839mzD4QDz+DbyRaDZ wVK+NaWZe1DG4Li6g2U1TIERCOpLoEyWBIELz+iCxLso6KTHWUZCCrF0YGJ8JLuLn4ha jng0zbv/7d/Fm63UbTXVdp6ojx1Z2prsMcvKc= MIME-Version: 1.0 Received: by 10.216.82.78 with SMTP id n56mr72871wee.71.1319406868067; Sun, 23 Oct 2011 14:54:28 -0700 (PDT) Received: by 10.180.105.162 with HTTP; Sun, 23 Oct 2011 14:54:28 -0700 (PDT) In-Reply-To: <4E8F5D47.9070904@yandex.ru> References: <81477.1318015137@critter.freebsd.dk> <4E8F55CC.3060302@FreeBSD.org> <4E8F5D47.9070904@yandex.ru> Date: Sun, 23 Oct 2011 17:54:28 -0400 Message-ID: From: Arnaud Lacombe To: "Andrey V. Elsukov" Content-Type: text/plain; charset=ISO-8859-1 Cc: Warren Block , Garrett Cooper , Glen Barber , Poul-Henning Kamp , freebsd-current@freebsd.org, Benjamin Kaduk Subject: Re: aliasing (or renaming) kern.geom.debugflags X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 23 Oct 2011 21:54:29 -0000 Hi, 2011/10/7 Andrey V. Elsukov : > On 07.10.2011 23:41, Glen Barber wrote: >> In my experience, without kern.geom.debugflags=16, the MBR will not be >> written to the memstick, leaving you with what would effectively be a >> coaster in the not-so-distant past. > > The problem is that this bad suggestion is everywhere in the Internet. > And users use it always even when it not needed. I think it is bad idea > add it in the our official documentation. FWIW, boot0cfg(8) also mentions it: NOTE Protection mechanisms in the geom(4) subsystem might prevent boot0cfg from being able to update the MBR on a mounted disk. Instructions for temporarily disabling these protection mechanisms can be found in the geom(4) manpage. Specifically, do a sysctl kern.geom.debugflags=0x10 to allow writing to the MBR, and restore it to 0 afterwards. - Arnaud > When you doing all in the right way using debugflags=16 is not needed. > And it is really dangerous when you doing something what you do not know > exactly. > > -- > WBR, Andrey V. Elsukov > >