Usage: sg_write_long [--16] [--cor_dis] [--help] [--in=IF] [--lba=LBA]
[--pblock] [--verbose] [--version] [--wr_uncor]
[--xfer_len=BTL] DEVICE
where:
--16|-S do WRITE LONG(16) (default: 10)
--cor_dis|-c set correction disabled bit
--help|-h print out usage message
--in=IF|-i IF input from file called IF (default: use
0xff bytes as fill)
--lba=LBA|-l LBA logical block address (default: 0)
--pblock|-p physical block (default: logical block)
--verbose|-v increase verbosity
--version|-V print version string then exit
--wr_uncor|-w set an uncorrectable error (no data transferred)
--xfer_len=BTL|-x BTL byte transfer length (< 10000) (default:
520 bytes)
Performs a SCSI WRITE LONG (10 or 16) command. Writes a single block
including associated ECC data. That data may be obtained from the
SCSI READ LONG command. See the sg_read_long utility.
Options (10)
| Option | Description | Source |
|---|
--in, -i IF|-i | read data (binary) from file named IF and use it for the SCSI WRITE LONG command. | help + man |
--lba, -l LBA|-l | where LBA is the logical block address of the sector to overwrite. | help + man |
--xfer_len, -x BTL|-x | where BTL is the byte transfer length (default to 520). | help + man |
-S, --16 | send a SCSI WRITE LONG (16) command to DEVICE. (in the manual page but not in --help) | man |
-c, --cor_dis | sets the correction disabled (i.e 'COR_DIS') bit. (in the manual page but not in --help) | man |
-h, --help | output the usage message then exit. (in the manual page but not in --help) | man |
-p, --pblock | sets the physical block (i.e 'PBLOCK') bit. (in the manual page but not in --help) | man |
-v, --verbose | increase the degree of verbosity (debug messages). (in the manual page but not in --help) | man |
-V, --version | output version string then exit. (in the manual page but not in --help) | man |
-w, --wr_uncor | sets the "write uncorrected" (i.e 'WR_UNCOR') bit. (in the manual page but not in --help) | man |
Exit status (1) from the manual page
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.