Hi, I have a few questions regarding the usb-storage module.
First, I have a external enclosure for an ATA disk, and I'd like to obtain the unique serial number. If this disk were connected to a ATA controller, I would have used hdparm, but since usb-storage exposes the device as a SCSI device I've tried 'scsi_id /dev/sda' (e.g. reading page 0x80/0x83) but with no luck. Is this at all possible? Second, I also a have a USB floppy drive and the only way I've found to determine it's a floppy drive (from a program that is :-), is by looking at /proc/scsi/usb-storage/<hostnumber> and checking that the Protocol line says it a UFI interface - the 'type' exported in sysfs for the scsi device says 0, e.g. disk. I know I could check the USB device and/or interface (class, subClass, protocol) tupple for at least the type, but I think this sounds unsafe. So, I guess my question really boils down to this: is there any way to reliably determine the characteristics and vital product data of a SCSI device exported by usb-storage kernel module, like whether it's one of (floppy,cdrom,tape,disk), whether it uses removable media and so on? Many thanks, David ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel