From owner-freebsd-questions@FreeBSD.ORG Thu Jul 9 04:52:40 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 B2B1A1065672 for ; Thu, 9 Jul 2009 04:52:40 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.25]) by mx1.freebsd.org (Postfix) with ESMTP id 3D3528FC0A for ; Thu, 9 Jul 2009 04:52:40 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: by ey-out-2122.google.com with SMTP id 9so1583132eyd.3 for ; Wed, 08 Jul 2009 21:52:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=GcDvR4T8D4AyCJIOs/HKDddQHGgQ5RQOM2SZoVZSVXk=; b=pGuDqT4idZaQODastOdtw7z92DdOy7tlz0/TEvJmO54vA2HUfCiov05aBaw2xECjMO YiVLGI8l9t1+bco5JY9mhbJN79FI9qM0H9yDpwA9uAocxZh0jFxQ4MdM51hqGSmxp+g5 UEEhl8I39Dms5zAQDXCcBDwugaAej6etQ3Hmg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=DFfY5A8n986Qtr7lYI/Dw7fVWl94iKdml+EMVn+dSP9qFhsigcHh8TpHWgiZJVfpt/ GCVqNEA+I2ufOVuTdlqVQk0UfqN9fsB6iEtrePB06ffmpFuSSY5R9bSXcAqBm2Ev3JgU 3sQGxD5Y11pXXwVhQFIufr+F/9fi2QqeWqjyg= Received: by 10.210.138.6 with SMTP id l6mr1190225ebd.84.1247090660182; Wed, 08 Jul 2009 15:04:20 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 28sm3337003eyg.32.2009.07.08.15.04.17 (version=SSLv3 cipher=RC4-MD5); Wed, 08 Jul 2009 15:04:19 -0700 (PDT) Date: Wed, 8 Jul 2009 23:04:13 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090708230413.00bf3bc3@gumby.homeunix.com> In-Reply-To: <20090708194548.GA29703@slackbox.xs4all.nl> References: <20090708123342.22660.qmail@us1.tomahawkonline.net> <3a142e750907081049sc76dfd2o4d13d9ea6a2e983c@mail.gmail.com> <20090708194548.GA29703@slackbox.xs4all.nl> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.4; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: How to symlink devfs devices? 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, 09 Jul 2009 04:52:41 -0000 On Wed, 8 Jul 2009 21:45:48 +0200 Roland Smith wrote: > On Wed, Jul 08, 2009 at 05:49:24PM +0000, Paul B. Mahol wrote: > > > > > > Is it possible to create a symlink to a device and use the > > > symlink in place of the real device name in FreeBSD, especially > > > in version 7.2? > > > > > > 1. A disk > > > /dev/camera -> /dev/da0s1 > > > devfs.conf(5) > > Geneally, yes. But not in this case, I think. You don't want any old > usb device to be linked to /dev/camera! USB devices are enumerated in > the sequence thay are plugged in. So there is no hard guarantee that > the camera will always be available as da0s1. It might be da1s1 if > another USB drive was plugged in earlier. > > And not all cameras represent themselves as disk devices (USB mass > storage). Lots of modern ones use PTP > [http://en.wikipedia.org/wiki/Picture_Transfer_Protocol]. > > So in this case it might be better to use HAL (via hald(8)) > [http://freedesktop.org/wiki/Software/hal] although if it is a standard usb mass storage device, you can mount it via it's msdos volume label, or a generic label written to the device by glabel. Both methods are described in the glabel(8).