Date: Wed, 8 Jul 2009 23:04:13 +0100 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: How to symlink devfs devices? 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>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 8 Jul 2009 21:45:48 +0200 Roland Smith <rsmith@xs4all.nl> 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).
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090708230413.00bf3bc3>