title: How to distinguish between USB Hard Disk Drive and USB flash drive?
body: <p>In Windows, you can get GetDriveType return value to determine USB Hard Disk Drive or USB flash drive.</p>
  
  <p>DRIVE_REMOVABLE ==> USB flash drive</p>
  
  <p>DRIVE_FIXED ==> USB Hard Disk Drive</p>
  
  <p>How should I do it in linux?</p>
  
  <p>how should I do it <strong>from a developer's point of view</strong> ?</p>