From owner-freebsd-questions@FreeBSD.ORG Sun Jun 22 13:18:34 2008 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 014591065685 for ; Sun, 22 Jun 2008 13:18:34 +0000 (UTC) (envelope-from fbsd06+XE=c289ade6@mlists.homeunix.com) Received: from fallback-in1.mxes.net (fallback-out1.mxes.net [216.86.168.190]) by mx1.freebsd.org (Postfix) with ESMTP id CCC9E8FC1A for ; Sun, 22 Jun 2008 13:18:33 +0000 (UTC) (envelope-from fbsd06+XE=c289ade6@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by fallback-in1.mxes.net (Postfix) with ESMTP id 24351163F79 for ; Sun, 22 Jun 2008 09:02:42 -0400 (EDT) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id D2D4423E405 for ; Sun, 22 Jun 2008 09:02:38 -0400 (EDT) Date: Sun, 22 Jun 2008 14:02:30 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080622140230.666f4afc@gumby.homeunix.com.> In-Reply-To: <20080622091315.GA43950@slackbox.xs4all.nl> References: <200806212144.09925.heroh@gmx.de> <20080621224731.GA26997@slackbox.xs4all.nl> <20080622002207.7fc1f697@gumby.homeunix.com.> <20080622091315.GA43950@slackbox.xs4all.nl> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.10; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: shellscript conditional to check for external disk 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: Sun, 22 Jun 2008 13:18:34 -0000 On Sun, 22 Jun 2008 11:13:15 +0200 Roland Smith wrote: > On Sun, Jun 22, 2008 at 12:22:07AM +0100, RW wrote: > > On Sun, 22 Jun 2008 00:47:31 +0200 > > Roland Smith wrote: > > > > > > > Use glabel(8) to give the device an unique label. There is no > > > telling which device /dev/da0s1d is pointing to! After labeling > > > you can check for /dev//, which should be > > > unique. > > > > I think that should be: > > > > /dev/label/ > > That is only for non-filesystem labels, according to glabel(8): > > "This class also provides volume label detection for file > systems. Those labels cannot be set with glabel, but must be set > with the appropriate file system utility, > ... > Non file-system labels are created in the directory /dev/label/." but you did write: "Use glabel(8) to give the device an unique label", so it would be a non-filesystem label.