OS Manuals

/usr/bin/sgp_dd

SCSI utilities for Linux, Unix and Windows

From sg3-utils 1.49-r3 (enterprise-packages), captured 2026-11-08 by running sgp_dd --help (exit 0). permalink

Usage: sgp_dd  [bs=BS] [count=COUNT] [ibs=BS] [if=IFILE] [iflag=FLAGS]
               [obs=BS] [of=OFILE] [oflag=FLAGS] [seek=SEEK] [skip=SKIP]
               [--help] [--version]

               [bpt=BPT] [cdbsz=6|10|12|16] [coe=0|1] [deb=VERB] [dio=0|1]
               [fua=0|1|2|3] [sync=0|1] [thr=THR] [time=0|1] [verbose=VERB]
               [--dry-run] [--nocopy] [--progress] [--verbose]
  where:
    bpt         is blocks_per_transfer (default is 128)
    bs          must be device logical block size (default 512)
    cdbsz       size of SCSI READ or WRITE cdb (default is 10)
    coe         continue on error, 0->exit (def), 1->zero + continue
    count       number of blocks to copy (def: device size)
    deb         for debug, 0->none (def), > 0->varying degrees of debug
    dio         is direct IO, 1->attempt, 0->indirect IO (def)
    fua         force unit access: 0->don't(def), 1->OFILE, 2->IFILE,
                3->OFILE+IFILE
    if          file or device to read from (def: stdin)
    iflag       comma separated list from: [coe,dio,direct,dpo,dsync,excl,
                fua,mmap,null]
    of          file or device to write to (def: stdout), OFILE of '.'
                treated as /dev/null
    oflag       comma separated list from: [append,coe,dio,direct,dpo,
                dsync,excl,fua,mmap,null]
    seek        block position to start writing to OFILE
    skip        block position to start reading from IFILE
    sync        0->no sync(def), 1->SYNCHRONIZE CACHE on OFILE after copy
    thr         is number of threads, must be > 0, default 4, max 1024
    time        0->no timing(def), 1->time plus calculate throughput
    verbose     same as 'deb=VERB': increase verbosity
    --chkaddr|-c    check read data contains blk address
    --dry-run|-d    prepare but bypass copy/read
    --help|-h      output this usage message then exit
    --nocopy|-n    prevent copy apart to of=/dev/null
    --progress|-p    outputs progress report every 2 minutes
    --verbose|-v   increase verbosity of utility
    --version|-V   output version string then exit
Copy from IFILE to OFILE, similar to dd command
specialized for SCSI devices, uses multiple POSIX threads
Options (7)
OptionDescriptionSource
-c, --chkaddrthis option checks that every block read contains the (32 bit) block address of that block.man
-d, --dry-rundoes all the command line parsing and preparation but bypasses the actual copy or read.man
-h, --helpoutputs usage message and exits.man
-n, --nocopythis option causes this utility to exit when it would otherwise attempt to write to OFILE or stdout.man
-p, --progressthis option causes a progress report to be output every two minutes until the copy is complete.man
-v, --verbosewhen used once, this is equivalent to verbose=1.man
-V, --versionoutputs version number information and exits.man
Exit status (1) from the manual page
0it is successful

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.