From owner-freebsd-questions@FreeBSD.ORG Thu Jul 14 14:58:15 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE84816A421 for ; Thu, 14 Jul 2005 14:58:14 +0000 (GMT) (envelope-from rebehn@ant.uni-bremen.de) Received: from antsrv1.ant.uni-bremen.de (antsrv1.ant.uni-bremen.de [134.102.176.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD26943D4C for ; Thu, 14 Jul 2005 14:58:12 +0000 (GMT) (envelope-from rebehn@ant.uni-bremen.de) Received: from bremerhaven.ant.uni-bremen.de ([134.102.176.10]) by antsrv1.ant.uni-bremen.de with esmtp (Exim 4.51 (FreeBSD)) id 1Dt5A6-0008gl-7a; Thu, 14 Jul 2005 16:58:11 +0200 Message-ID: <42D67DAF.8080901@ant.uni-bremen.de> Date: Thu, 14 Jul 2005 16:58:55 +0200 From: Heinrich Rebehn User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1 X-Accept-Language: en MIME-Version: 1.0 To: Dan Nelson References: <42D66ABD.6040408@ant.uni-bremen.de> <20050714143156.GA43976@dan.emsphone.com> In-Reply-To: <20050714143156.GA43976@dan.emsphone.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -2.8 (--) X-Spam-Report: Spam detection software, running on the system "antsrv1.ant.uni-bremen.de", has identified this incoming email as possible spam. The original message has been attached to this so you can view it (if it isn't spam) or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: Dan Nelson wrote: > In the last episode (Jul 14), Heinrich Rebehn said: > >>I am trying to mount disks by label. The glabel(8) manpage suggests: >> >> tunefs -L data /dev/da4s1a >> mount /dev/ufs/data /mnt/data >> >>I tried that, but i don't see a /dev/ufs at all. Does it have to be >>mounted? If so, how? > > > Make sure you have the geom_label module loaded, or have "options > GEOM_LABEL" in your kernel config file. It's also a bit sensitive; if > your filesystem doesn't completely fill the partition it's in, you > won't get a label, so if you have resized partitions and not yet run > growfs it won't show up. > Hmm, it does not work: [...] Content analysis details: (-2.8 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -2.8 ALL_TRUSTED Did not pass through any untrusted hosts Cc: freebsd-questions@freebsd.org Subject: Re: /dev/ufs 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: Thu, 14 Jul 2005 14:58:15 -0000 Dan Nelson wrote: > In the last episode (Jul 14), Heinrich Rebehn said: > >>I am trying to mount disks by label. The glabel(8) manpage suggests: >> >> tunefs -L data /dev/da4s1a >> mount /dev/ufs/data /mnt/data >> >>I tried that, but i don't see a /dev/ufs at all. Does it have to be >>mounted? If so, how? > > > Make sure you have the geom_label module loaded, or have "options > GEOM_LABEL" in your kernel config file. It's also a bit sensitive; if > your filesystem doesn't completely fill the partition it's in, you > won't get a label, so if you have resized partitions and not yet run > growfs it won't show up. > Hmm, it does not work: root@antsrv1 [~] # kldstat Id Refs Address Size Name 1 9 0xc0400000 3c8ed4 kernel 2 14 0xc07c9000 56270 acpi.ko 3 1 0xc3c38000 17000 linux.ko 4 1 0xc9610000 4000 geom_label.ko 5 1 0xc918f000 2000 geom_vol_ffs.ko root@antsrv1 [~] # tunefs -L backup /dev/da1s1a root@antsrv1 [~] # tunefs -p /dev/da1s1a tunefs: ACLs: (-a) disabled tunefs: MAC multilabel: (-l) disabled tunefs: soft updates: (-n) disabled tunefs: maximum blocks per file in a cylinder group: (-e) 2048 tunefs: average file size: (-f) 16384 tunefs: average number of files in a directory: (-s) 64 tunefs: minimum percentage of free space: (-m) 1% tunefs: optimization preference: (-o) time tunefs: should optimize for space with minfree < 8% tunefs: volume label: (-L) backup root@antsrv1 [~] # ls /dev/ufs ls: /dev/ufs: No such file or directory The filesystem is freshly newfs'ed and the partitions have not been resized. Any more ideas? --Heinrich