From owner-freebsd-questions@FreeBSD.ORG Sat Jun 21 23:33:33 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 DD5361065671 for ; Sat, 21 Jun 2008 23:33:33 +0000 (UTC) (envelope-from fbsd06+XD=00e173fb@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 BB5028FC21 for ; Sat, 21 Jun 2008 23:33:33 +0000 (UTC) (envelope-from fbsd06+XD=00e173fb@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 458B6163DF6 for ; Sat, 21 Jun 2008 19:22:12 -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 9E95F23E405 for ; Sat, 21 Jun 2008 19:22:10 -0400 (EDT) Date: Sun, 22 Jun 2008 00:22:07 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080622002207.7fc1f697@gumby.homeunix.com.> In-Reply-To: <20080621224731.GA26997@slackbox.xs4all.nl> References: <200806212144.09925.heroh@gmx.de> <20080621224731.GA26997@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: Sat, 21 Jun 2008 23:33:33 -0000 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/