sg_raw
Send arbitrary SCSI command to a connected device. tldr-pages
On several platforms
Several platforms
Send a command to an optical SCSI device assigned to sr0 to load the media in its tray
sg_raw /dev/sr0 EA 00 00 00 00 01IdentifyRead data from IFILE instead of stdin
sg_raw --infile path/to/IFILE /dev/sgX scsi_commandIdentifySkip the first LEN bytes of input data
sg_raw --skip LEN /dev/sgX scsi_commandIdentifyRead SLEN bytes of data and send to the device
sg_raw --send SLEN /dev/sgX scsi_commandIdentifyWait up to SEC seconds for sg_raw to finish processing
sg_raw --timeout SEC /dev/sgX scsi_commandIdentifyIncrease verbosity level by 1
sg_raw --verbose /dev/sgX scsi_commandIdentifyDump returned data in binary form
sg_raw --binary /dev/sgX scsi_commandIdentifyWrite data received from the specified device to an OFILE
sg_raw --outfile path/to/OFILE /dev/sgX scsi_commandIdentify