From owner-freebsd-questions@FreeBSD.ORG Wed Jul 8 19:45:51 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 32E521065748 for ; Wed, 8 Jul 2009 19:45:51 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) by mx1.freebsd.org (Postfix) with ESMTP id BAFB88FC1C for ; Wed, 8 Jul 2009 19:45:50 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id n68Jjm12045384; Wed, 8 Jul 2009 21:45:48 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id 54CCABA9C; Wed, 8 Jul 2009 21:45:48 +0200 (CEST) Date: Wed, 8 Jul 2009 21:45:48 +0200 From: Roland Smith To: "Paul B. Mahol" Message-ID: <20090708194548.GA29703@slackbox.xs4all.nl> References: <20090708123342.22660.qmail@us1.tomahawkonline.net> <3a142e750907081049sc76dfd2o4d13d9ea6a2e983c@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="qMm9M+Fa2AknHoGS" Content-Disposition: inline In-Reply-To: <3a142e750907081049sc76dfd2o4d13d9ea6a2e983c@mail.gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: Sagara Wijetunga , freebsd-questions@freebsd.org 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: Wed, 08 Jul 2009 19:45:51 -0000 --qMm9M+Fa2AknHoGS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 p= lace > > 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]. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --qMm9M+Fa2AknHoGS Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.12 (FreeBSD) iEYEARECAAYFAkpU92wACgkQEnfvsMMhpyXygQCdG9lVowDuGzDV3JYMHT0r0ayY 0rkAnRnNXQmqKPad9ibMh3uQseUZBUUL =NUo1 -----END PGP SIGNATURE----- --qMm9M+Fa2AknHoGS--