how to distinguish multiple umass devices?

John-Mark Gurney gurney_j at
Wed Oct 24 22:57:08 PDT 2007

Dmitry Marakasov wrote this message on Thu, Oct 25, 2007 at 05:15 +0400:
> I have multiple umass devices (flash key, player and photo camera), and
> I want to distinguish their devices in some way.
> The best thing would be to have /dev/flash, /dev/camera etc, as in this
> case I'll distinguish thoughput graphs on GKrellM system monitor. But I
> don't think it's possible, so I need a way to at least create
> corresponding symlinks in /dev. As I understand, devd is my savior, but
> there's one problem that bugs me: devd sees umass[012], but it doesn't
> know anything about da[012]. Is there guarantee that umassX matches daX,
> or is it possible to get da* device from devd on umass attach?

Why not try geom_label?  Things like fat fs's will appear by their
volume in /dev/msdosfs/...  check out glabel(8) for more info...

  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."

More information about the freebsd-usb mailing list