From owner-freebsd-current@FreeBSD.ORG Mon Sep 28 19:04:41 2009 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 8CEC91065679 for ; Mon, 28 Sep 2009 19:04:41 +0000 (UTC) (envelope-from lehmann@ans-netz.de) Received: from avocado.salatschuessel.net (avocado.salatschuessel.net [78.111.72.186]) by mx1.freebsd.org (Postfix) with SMTP id D7F618FC15 for ; Mon, 28 Sep 2009 19:04:40 +0000 (UTC) Received: (qmail 71619 invoked by uid 89); 28 Sep 2009 19:04:39 -0000 Received: from unknown (HELO kartoffel.salatschuessel.net) (78.111.72.187) by avocado.salatschuessel.net with SMTP; 28 Sep 2009 19:04:39 -0000 Date: Mon, 28 Sep 2009 21:04:38 +0200 From: Oliver Lehmann To: Pawel Jakub Dawidek Message-Id: <20090928210438.ddd2af93.lehmann@ans-netz.de> In-Reply-To: <20090928184926.GA2016@garage.freebsd.pl> References: <20090927170244.0980d699.lehmann@ans-netz.de> <20090927223725.5893371f.lehmann@ans-netz.de> <20090928084035.GB1659@garage.freebsd.pl> <20090928203756.ef70e0c6.lehmann@ans-netz.de> <20090928184926.GA2016@garage.freebsd.pl> X-Mailer: Sylpheed 2.7.1 (GTK+ 2.16.6; amd64-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Mailman-Approved-At: Mon, 28 Sep 2009 19:28:22 +0000 Cc: =?UTF-8?B?U23DuHJncmF2?= , Dag-Erling, freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: glabel+gmirror (8.0-RC1 problem) 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: Mon, 28 Sep 2009 19:04:41 -0000 Pawel Jakub Dawidek wrote: > Yes. tunefs(8) updates only on-disk super-block, but the kernel holds > super-block that was read before. Now when you do 'mount -rw /' the > in-kernel super-block is stored to the disk, and there is nothing about > your label in there, so it gets overwritten. Ok this sounds familar to me - maybe I have read about this before ;) What would be the prefered way to label the root partition and changing fstab without entering the root partition at bootup manually at least once? Is there a way to do so? I noticed that even when I boot in multiuser, change fstab, then return into single user mode and remount / read-only, the label cannot be set. I need to boot directly into single user mode. Looks like writing the label is denied when the partition was once mounted rw before - even if it is actually mounted ro. -- Oliver Lehmann http://www.pofo.de/ http://wishlist.ans-netz.de/