From owner-freebsd-questions@FreeBSD.ORG Mon May 10 21:36:34 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9E08C1065673 for ; Mon, 10 May 2010 21:36:34 +0000 (UTC) (envelope-from demelier.david@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 2E9258FC18 for ; Mon, 10 May 2010 21:36:33 +0000 (UTC) Received: by wyb32 with SMTP id 32so528307wyb.13 for ; Mon, 10 May 2010 14:36:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:references:mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; bh=oMIUSLg857ye+W86zBtnLbRmn8KSsRf7vcCbp7xbFog=; b=t1ycuPuLJ7dKCZ+iEwoBJVNgJ6JSVJgMDld09MBeht0Loc7cdjZSF9raisx5pwfApB s1gGn1bantStUSJtdcAigOKIU4FcaLc4a4cNKcSSa3qHPrSOxUzdf05AE1X/6XG2VnZN DJrcj5yovSPZJ9WrtncAHbM99lc32cQo+X4NE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:references:mime-version :content-type:content-disposition:content-transfer-encoding :in-reply-to:user-agent; b=iWyfKMfuctf5A3HZue2zg7cqIByii7kIhFQwob4ZF5YsmSnXDUkpKTAC2ssJ4jlrR5 XlWTG7y7PYlgryTaKf62/nRv/zUHvzVFIdzRHg1EFxT9hXVHFOQ9ir/yu8QfPGbnkUp0 /Gb/qB5theH2JgVYGeQjw2DRbjhEvyyWWXhFM= Received: by 10.227.143.11 with SMTP id s11mr4361593wbu.159.1273527393106; Mon, 10 May 2010 14:36:33 -0700 (PDT) Received: from Melon.malikania.fr (121.21.102-84.rev.gaoland.net [84.102.21.121]) by mx.google.com with ESMTPS id z33sm43716543wbd.1.2010.05.10.14.36.32 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 10 May 2010 14:36:32 -0700 (PDT) Date: Mon, 10 May 2010 23:36:20 +0200 From: Demelier David To: Roland Smith Message-ID: <20100510213620.GA1593@Melon.malikania.fr> References: <20100510202618.GA1748@Melon.malikania.fr> <20100510210830.GD67087@slackbox.erewhon.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20100510210830.GD67087@slackbox.erewhon.net> User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-questions@freebsd.org Subject: Re: glabel nor tunefs save my labels X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 May 2010 21:36:34 -0000 On Mon, May 10, 2010 at 11:08:30PM +0200, Roland Smith wrote: > On Mon, May 10, 2010 at 10:26:18PM +0200, Demelier David wrote: > > Hi, > > I was trying to follow this guide to make labels : > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/geom-glabel.html > > > > It does not work here, I boot single user and ran these commands : > > glabel label usr /dev/ad0s1f > > Do not use this on an already existing filesystem! Use tunefs instead; > > tunefs ‐L usr /dev/ad0s1f > I tried this and in single-user mode there were root root(a|e|b|d|f) usr tmp var and I typed exit, it boots, and then no more entries in /dev/ufs ! And now there is only tmp and var in /dev/vol. I'm so confused now. > If you really want to use glabel, do it on an empty disk or partition. What > you must understand is that 'glabel label' uses the last sector of the > provider to store its metadata. So if you were to do e.g. > > glabel label ‐v usr /dev/da2 > > A labeled device /dev/label/usr would be created. This is one sector smaller > than /dev/da2! If you were to use newfs on /dev/da2 instead of on > /dev/label/usr, the label would be destroyed once the last sector is overwritten! > So that was why entries were removed each time I boot. Thanks for your support. -- Demelier David