From owner-freebsd-questions@FreeBSD.ORG Fri Oct 16 22:46:26 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 9B6D5106566C for ; Fri, 16 Oct 2009 22:46:26 +0000 (UTC) (envelope-from kraduk@googlemail.com) Received: from mail-fx0-f210.google.com (mail-fx0-f210.google.com [209.85.220.210]) by mx1.freebsd.org (Postfix) with ESMTP id 248BF8FC12 for ; Fri, 16 Oct 2009 22:46:25 +0000 (UTC) Received: by fxm6 with SMTP id 6so2904118fxm.43 for ; Fri, 16 Oct 2009 15:46:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=BaWlNjHSlQKnffpYzsazIRennYClbXfzMH/Xhsy7OKE=; b=ZJxL3uZNpd5skMbRXafIz9vV6nN35oW0pwuvVHOdlsEEXsAsE7mxZGCwQ13jUKXsqV /bCV6ybbOZUSPBCumdjunbrgxi+1nueysK4F3A2lxU6Ze1LRZih+YrGcZpEGygR5YYGp +KD+QlnEOrsrmt6/G8jHIDQRGdlGsNnXCtX2I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=Xk20NIDYgFAV7NIUtR7O5a/73PMJk3JByjTZY5m+6qcjqRyeIO2rwakmmIlSnDJQOO /LL1tYLMJyPDtwla4lHWJmNxZ1Udgs+rLJbf1qrpK5Jv9JR8XLFWkPGhHo6peKiq4W4q bJoW5Rv9Y0rlfJIIROAIDpPEGVmIaC3OiQsLU= MIME-Version: 1.0 Received: by 10.239.138.13 with SMTP id n13mr213720hbn.9.1255733184736; Fri, 16 Oct 2009 15:46:24 -0700 (PDT) In-Reply-To: <4AD8EB8F.9010900@videotron.ca> References: <4AD8EB8F.9010900@videotron.ca> Date: Fri, 16 Oct 2009 23:46:24 +0100 Message-ID: From: krad To: PJ Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 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: Fri, 16 Oct 2009 22:46:26 -0000 2009/10/16 PJ > 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) > < > http://www.freebsd.org/cgi/man.cgi?query=tunefs&sektion=8&apropos=0&manpath=FreeBSD+7.2-RELEASE > >. > 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" > I think your in that zone before the penny drops. It happens to us all 8) Its quite simple if you are dealing with a new install add the label when you format the fs eg new -L somelabel somedev if the fs already exists unmount it (anoying I know) and then tunefs it eg tunefs -L somelabel somedev then in both cases mount it via the appropriate glabel dev in this case its ufs so the dev is /dev/ufs/somelabel I generally dont bother labeling devices like ads1 da0 etc as thete isnt much point I just stick the to the file systems. The exception is the swap partition eg glabel label -v swap /dev/da2p2 i then swapon the device /dev/label/swap note as there is not file system on this dev it takes the label subdir other fs like ntfs vfat take different subdirs