How to symlink devfs devices?

Roland Smith rsmith at
Wed Jul 8 19:45:51 UTC 2009

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

So in this case it might be better to use HAL (via hald(8))

[plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated]
pgp: 1A2B 477F 9970 BA3C 2914  B7CE 1277 EFB0 C321 A725 (KeyID: C321A725)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list