On Mon, May 14, 2007 at 06:39:07PM +0200, Bertrik Sikken wrote:
> 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.

The INQUIRY data is almost completely unreliable.  Anything other than the
PDT should be considered suspect.  Heck, the PDT should probably be
considered suspectd, too.

Matt

-- 
Matthew Dharm                              Home: [EMAIL PROTECTED] 
Maintainer, Linux USB Mass Storage Driver

NYET! The evil stops here!
                                        -- Pitr
User Friendly, 6/22/1998

Attachment: pgpfecvkHNiD8.pgp
Description: 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

Reply via email to