From owner-freebsd-stable@FreeBSD.ORG Wed Jun 8 20:37:12 2011 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51D05106566B for ; Wed, 8 Jun 2011 20:37:12 +0000 (UTC) (envelope-from josh.carroll@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id 1D3A58FC19 for ; Wed, 8 Jun 2011 20:37:11 +0000 (UTC) Received: by pzk27 with SMTP id 27so545190pzk.13 for ; Wed, 08 Jun 2011 13:37:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=4u/5CoNiV2FvlwOEkqh9DR8bbaecZrMz0ChGEz/mv1k=; b=m2YiCfJPFzwEihjWcAyASora4pljY7daN5z4VjyAXCVImY0MXuWQ07nvrgB/mJbl8h VUejemhzce5UGm6djkqmDXzwn573NinuJKK9SP12HfFe4X745IVaizwBR/TxC/G4JtJ+ t9gNSL8GgkX/7is7xnzlWq2k4H1od/qhb3BBo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; b=CUGGLATDh4QQiEivq4TATy8EgHojBqHbVTwuYaMtPxg7rky61/anX5y75Pb+3LXWwD rxOp7az3PW0vO7qlzPXxqifoYquxtZbBOhW3bsw+rVS+oscso0M+NLgv8/VtUCi8aRQK ovr8zLf+XawZ6InyOM1pvwKagwnjuVCHhYXlE= MIME-Version: 1.0 Received: by 10.68.1.42 with SMTP id 10mr532320pbj.33.1307565431614; Wed, 08 Jun 2011 13:37:11 -0700 (PDT) Received: by 10.68.51.169 with HTTP; Wed, 8 Jun 2011 13:37:11 -0700 (PDT) In-Reply-To: <4DEFCBA2.10908@FreeBSD.org> References: <4DEF7322.8030907@gmx.de> <4DEF8103.9030401@gmx.de> <20110608162626.GA94883@icarus.home.lan> <4DEFA5E3.8080806@FreeBSD.org> <20110608165515.GA95345@icarus.home.lan> <4DEFCBA2.10908@FreeBSD.org> Date: Wed, 8 Jun 2011 13:37:11 -0700 Message-ID: From: Josh Carroll To: Andriy Gapon Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-stable@freebsd.org, Jeremy Chadwick Subject: Re: [SOLVED] Re: labelling root file system (RELENG_8) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: josh.carroll@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 08 Jun 2011 20:37:12 -0000 >> That would mean the only time a >> person can use tunefs on a root filesystem is when they either do it >> manually during the FreeBSD installation (adding "-t" to the list of >> newfs flags in the filesystem creation UI), or if they boot off of some >> other medium (USB flash drive, CD, PXE, etc.). > > Or when your root fs is mounted r/o, which is not as bad as what you listed above. Perhaps I'm doing something wrong, but in my experience, at least with glabel, the label will not stick even if you have the root fs mounted ro. I have had to boot from an alternative media (boot cd, alternate root fs, etc) in order to create a label for the root fs with glabel. To be specific, I'm talking about the "automatic" labels created with glabel label . I just tested this again in a VM, and sure enough if I boot single user mode but use ad0s1a as the ro root file system during single user mode, it still doesn't stick and upon reboot I don't have a /dev/label entry. Here is the exact sequence I used: 1. boot single user with the default root fs (ad0s1a). 2. leave / mounted read only 3. glabel label -v root ad0s1a # reports successful addition of metadata 4. /dev/label/root exists as expected 5. reboot 6. /dev/label/root does not exist If I boot from a boot cd for example and do it from there, it works fine. So it seems (at least for glabel) that you can't have the fs mounted at all when adding a glabel. If that's the expected behavior, perhaps we can add a mention of this in the man page(s)? Otherwise, I'm curious what I'm doing wrong and how I can get it to stick and still not need a boot CD/etc. Thanks, Josh