http://bugs.winehq.org/show_bug.cgi?id=21448
Ralf Habacker ralf.habacker@freenet.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ralf.habacker@freenet.de
--- Comment #15 from Ralf Habacker ralf.habacker@freenet.de 2012-02-16 05:37:58 CST --- (In reply to comment #11)
(In reply to comment #5)
What remains open is: How to get this information under Linux?
You can probably find the appropriate ioctl commands in "hdparm". If you run hdparm on a cdrom device (sudo hdparm -I /dev/cdrom) it returns all of the information you're talking about. I'm not sure if you can access that data without superuser privileges, but you probably want to try and see if you can get it to return satisfactory "generic" responses anyway.
lsscsi reports similar informations without requiring super user privileges
user@server:~/> lsscsi -l [0:0:0:0] disk ATA ST9250410AS D005 /dev/sda state=running queue_depth=31 scsi_level=6 type=0 device_blocked=0 timeout=30 [1:0:0:0] cd/dvd Optiarc DVD+-RW AD-7930H 100A /dev/sr0 state=running queue_depth=1 scsi_level=6 type=5 device_blocked=0 timeout=30 [6:0:0:0] disk WDC WD32 00BEKT-60PVMT0 /dev/sdb state=running queue_depth=1 scsi_level=3 type=0 device_blocked=0 timeout=30
lsscsi fetches these informations from /sys/class/scsi_device
user@server:~/> cat /sys/class/scsi_device/1:0:0:0/device/vendor Optiarc user@server:~/> cat /sys/class/scsi_device/1:0:0:0/device/model DVD+-RW AD-7930H user@server:~/> cat /sys/class/scsi_device/1:0:0:0/device/rev 100A user@server:~/> cat /sys/class/scsi_device/1:0:0:0/device/type 5
Unfortunally I did no found an entry for the serial number yet.