title: How can I determine the files system type of external storage in Android?
body: <p>I'm writing an application that writes a file to a USB flash drive (via USB OTG), which will then be removed from the phone and used elsewhere (which only supports FAT32). I need to be able to determine if the external storage is formatted correctly, and if not, I need to tell the user. </p>
  
  <p>If I connect a FAT32 formatted drive, calling mount on the android shell only indicates "fuse" as the file system:</p>
  
  <pre><code>/dev/fuse /storage/usbotg fuse rw,nosuid,nodev,relatime,user_id=1023,group_id=1023,default_permissions,allow_other 0 0
  </code></pre>
  
  <p>Is there a way to determine the filesystem, either via command line or programatically?</p>