title: Linux, sysfs, usb sticks and usb hard drives
body: <p>Is there a way to distinguish between USB sticks (flash memory) and USB hard drives via libudev / sysfs in Linux? If not, is there a way to query the hardware directly? Thank you.</p>