title: How do I detect usb drive insertion in Linux?
body: <p>I've written an application for an embedded linux project, and I want my application to display a particular menu when the user inserts a USB drive.  I'm programming the application in C++ with Qt.</p>
  
  <p>My system doesn't have d-bus but it is using udev.  It seems to me that udev is the "proper" way to do this detection, but seems complicated.</p>
  
  <p>Can anyone point me in the right direction to get started with this?  Is there a way to do it without udev, and if not, is there a good "getting started" guide for udev I could use?  I really don't need much functionality, just a way for my application to be notified when a drive is inserted (and enough info for my app to mount the drive).</p>
  
  <p>Thanks</p>
  
  <p>Marlon</p>