How to auto-detect a USB drive?

Peter Steele psteele at
Wed Mar 11 07:44:01 PDT 2009

I want to have a process running on my FreeBSD box that automatically detects when a USB drive is inserted. What's the easiest way to accomplish this? I know I could simply monitor /var/log/messages and look for the appropriate events to appear, but is there a more elegant way? 

More information about the freebsd-questions mailing list