This is an old revision of the document!
Homepage: http://sg.danny.cz/sg/sg3_utils.html
“The sg3_utils package contains utilities that send SCSI commands to devices.”
sg_inq /dev/sda
standard INQUIRY: PQual=0 Device_type=0 RMB=0 version=0x06 [SPC-4] [AERC=0] [TrmTsk=0] NormACA=0 HiSUP=0 Resp_data_format=2 SCCS=0 ACC=0 TPGS=0 3PC=0 Protect=0 [BQue=0] EncServ=0 MultiP=0 [MChngr=0] [ACKREQQ=0] Addr16=0 [RelAdr=0] WBus16=1 Sync=1 Linked=0 [TranDis=0] CmdQue=1 length=36 (0x24) Peripheral device type: disk Vendor identification: VMware Product identification: Virtual disk Product revision level: 2.0
sginfo -i /dev/sda
INQUIRY response (cmd: 0x12) ---------------------------- Device Type 0 Peripheral Qualifier 0 Removable 0 Version 6 NormACA 0 HiSup 0 Response Data Format 2 SCCS 0 ACC 0 ALUA 0 3PC 0 Protect 0 BQue 0 EncServ 0 MultiP 0 MChngr 0 Addr16 0 Relative Address 0 Wide bus 16 1 Synchronous neg. 1 Linked Commands 0 Command Queueing 1 Vendor: VMware Product: Virtual disk Revision level: 2.0