From owner-freebsd-questions@FreeBSD.ORG Sat Oct 17 05:55:18 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 618CD106566B for ; Sat, 17 Oct 2009 05:55:18 +0000 (UTC) (envelope-from michael.copeland@gmail.com) Received: from mail-yx0-f171.google.com (mail-yx0-f171.google.com [209.85.210.171]) by mx1.freebsd.org (Postfix) with ESMTP id 17CB78FC19 for ; Sat, 17 Oct 2009 05:55:17 +0000 (UTC) Received: by yxe1 with SMTP id 1so2452204yxe.3 for ; Fri, 16 Oct 2009 22:55:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=eSK2oIepovWKIt9sFmeThF3zNg1o1XH5qwCXUZQvPv0=; b=x9a6Bk2b6k9Toa1VShIDM76lOZktENESHyYL2tgJROqAQ0baVQWg5o8Z0G3GUVG3xf W1aYDCpkBWESc2py3f3C7Qoc/H69zwKF/o/o1JknWM8PK4i8c4D2NBASNNiagbaonXap F2gufB2R4jkTufhROsUZXcNUQCzRezQlrQgtA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=qWdfj5GNw3aT+5AkIBNO9vnVtWuwnGQo/3Y3PtodZVN/FA3BWF6alq/OI7Hf0L9S5/ c2Em2yIinE2zC80NTUKrTi1gHtBymGN/sQcf+dhGQ2iDb7v963jBF6WI+qIp7kzJ62gT Q5hirgAehJRBgvr9e4eVsYdJndRASz0jly8/8= Received: by 10.150.46.5 with SMTP id t5mr4213368ybt.97.1255757634326; Fri, 16 Oct 2009 22:33:54 -0700 (PDT) Received: from ?192.168.1.76? (99-166-165-150.lightspeed.jcvlfl.sbcglobal.net [99.166.165.150]) by mx.google.com with ESMTPS id 14sm132752gxk.6.2009.10.16.22.33.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 16 Oct 2009 22:33:53 -0700 (PDT) Message-ID: <4AD95740.6010408@gmail.com> Date: Sat, 17 Oct 2009 01:33:52 -0400 From: michael User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: PJ References: <4AD8EB8F.9010900@videotron.ca> In-Reply-To: <4AD8EB8F.9010900@videotron.ca> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: I hate to bitch but bitch I must 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: Sat, 17 Oct 2009 05:55:18 -0000 PJ wrote: > Why is it that the manual pages, as thorough as they may be, are very, > very confusing. > Perhaps I am being too wary, but I find that too many > instructions/examples are stumbling blocks to appreciation of the whole > system: > for instance, let's look at the instructions for changing disk labels > with glabel or is it tunefs ? > man glabel(8): > > for UFS the file system label is set with > tunefs(8) > . > what happened to glabel? > man tunefs(8) > The *tunefs* utility cannot be > run on an active file system. To change an active file system, it must > be downgraded to read-only or unmounted. > > So, you have to run tunefs from an active file system to modify another > disk? > but from man tunefs: > BUGS > This utility should work on active file systems. > What in hades does this mean--just above it says cannot be run on active > file systems. ??? > To change the root file > system, the system must be rebooted after the file system is tuned. > > You can tune a file system, but you cannot tune a fish. > How cute... And fish eat bugs. > > Seriously, now to the manual: > To create a permanent label for a UFS2 file system without destroying > any data, issue the following command: > # tunefs -L /home/ /dev/da3 > > Oh? home is what? What does this have to do with the partitions? > Here's from man glabel(8): > > EXAMPLES > The following example shows how to set up a label for disk ``da2'', cre- > ate a file system on it, and mount it: > glabel label -v usr /dev/da2 > newfs /dev/label/usr > mount /dev/label/usr /usr > [...] > umount /usr > glabel stop usr > glabel unload > > The next example shows how to set up a label for a UFS file system: > tunefs -L data /dev/da4s1a > mount /dev/ufs/data /mnt/data > > Am I to understand that glabel is only for a new system? What's with the > newfs... I'm trying to set labels on an system that is already set up. > And, the glabel examle above is not for UFS file systems? Oh, that's for > tunefs? > So why are we even dealing with this glabel? > > from manual: > # tunefs -L /home/ //dev/da3/ > A label should now exist in /dev/ufs which may be added to /etc/fstab: > /dev/ufs/home /home ufs rw 2 2 > > Why? Is this necessary? and somewhere I saw "tunefs -L volume > /dev/da0s1a" or something like that. Does that mean that each partition > should be tunefsd? Maybe the guys who programmed this stuff understand; > I sure don't. I just want to be able to set the labels according to what > they say can be done... so shy not have a clear and concise explanation? > > Do people who write this stuff ever read it? Tell me that its clear and > simple and to the point... so far, I have been running back and forth > between half a dozen web pages trying to understand what is going on... > and doing things through a dense fog does not produce creative results! > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" > ok, in short since i didn't see anyone answer this directly, your question of tunefs vs glabel: tunefs is for UFS: it labels a UFS filesystem, no matter the device, ie: ad or da. tunefs is part of the filesystem utilities for UFS. good example, can't tunefs -L SWAP /dev/ad0s1b if it is a swap. you can glabel it. glabel is for labeling a device itself. you can glabel an ntfs filesystem or ext2, whatever.