SCSI Control - Send Raw SCSI Commands | Online Free DevTools by Hexmos
Control SCSI devices with sg_raw. Send raw SCSI commands, manipulate optical drives, and debug device interactions. Free online tool, no registration required.
sg_raw
Send arbitrary SCSI command to a connected device. More information: https://manned.org/sg_raw.
- Send a command to an optical SCSI device assigned to
sr0to load the media in its tray:
sg_raw /dev/sr0 EA 00 00 00 00 01
- Read data from
IFILEinstead ofstdin:
sg_raw {{[-i|--infile]}} {{path/to/IFILE}} {{/dev/sgX}} {{SCSI_command}}
- Skip the first
LENbytes of input data:
sg_raw {{[-k|--skip]}} {{LEN}} {{/dev/sgX}} {{SCSI_command}}
- Read
SLENbytes of data and send to the device:
sg_raw {{[-s|--send]}} {{SLEN}} {{/dev/sgX}} {{SCSI_command}}
- Wait up to
SECseconds forsg_rawto finish processing:
sg_raw {{[-t|--timeout]}} {{SEC}} {{/dev/sgX}} {{SCSI_command}}
- Increase verbosity level by 1:
sg_raw {{[-v|--verbose]}} {{/dev/sgX}} {{SCSI_command}}
- Dump returned data in binary form:
sg_raw {{[-b|--binary]}} {{/dev/sgX}} {{SCSI_command}}
- Write data received from the specified device to an
OFILE:
sg_raw {{[-o|--outfile]}} {{path/to/OFILE}} {{/dev/sgX}} {{SCSI_command}}