How to auto-detect a USB drive?

Peter Steele psteele at
Wed Mar 11 08:13:49 PDT 2009

This looks like it will do exactly what I need. Thanks for the pointer! 

----- Original Message ----- 
From: "Wojciech Puchar" <wojtek at> 
To: "Peter Steele" <psteele at> 
Cc: questions at 
Sent: Wednesday, March 11, 2009 8:08:20 AM GMT -08:00 US/Canada Pacific 
Subject: Re: How to auto-detect a USB drive? 


On Wed, 11 Mar 2009, Peter Steele wrote: 

> 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? 
> _______________________________________________ 
> freebsd-questions at mailing list 
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at" 

More information about the freebsd-questions mailing list