-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Radha Mohan wrote: > How to differentiate between a pen drive and a USB HDD using any of > the descriptors? Both the devices use same driver. I want to know > whether a device connected is a pen-drive or a USB HDD.
Perhaps you can do this by looking at the SCSI inquiry data. I can imagine that a pen drive usually has the 'removeable' bit (bit 7 of byte 1 in the response the INQUIRY command). set while a USB HDD does not. Regards, Bertrik -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFGSJCrETD6mlrWxPURAvBtAKCg2DncoVHcSx8jeWRmTYP3wx0U/gCdHTDM l9k1YeM4oYNMBhXA3xbvm9I= =Q/zW -----END PGP SIGNATURE----- ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Linux-usb-users@lists.sourceforge.net To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-users