OS Manuals

/usr/bin/sg_reassign

SCSI utilities for Linux, Unix and Windows

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

Usage: sg_reassign [--address=A,A...] [--dummy] [--eight=0|1] [--grown]
                   [--help] [--hex] [--longlist=0|1] [--primary] [--verbose]
                   [--version] DEVICE
  where:
    --address=A,A...|-a A,A...    comma separated logical block addresses
                                  one or more, assumed to be decimal
    --address=-|-a -    read stdin for logical block addresses
    --dummy|-d          prepare but do not execute REASSIGN BLOCKS command
    --eight=0|1
      -e 0|1            force eight byte (64 bit) lbas when 1,
                        four byte (32 bit) lbas when 0 (def)
    --grown|-g          fetch grown defect list length, don't reassign
    --help|-h           print out usage message
    --hex|-H            print response in hex (for '-g' or '-p')
    --longlist=0|1
       -l 0|1           use 4 byte list length when 1, safe to ignore
                        (def: 0 (2 byte list length))
    --primary|-p        fetch primary defect list length, don't reassign
    --verbose|-v        increase verbosity
    --version|-V        print version string and exit

Perform a SCSI REASSIGN BLOCKS command (or READ DEFECT LIST)
Options (12)
OptionDescriptionSource
--address, -a Acomma separated logical block addresses one or more, assumed to be decimalhelp + man
--eight 0|1help
-e 0|1when value is 1 then it sets the 'LONGLBA' flag in the command indicating that the addresses in the associated parameter block are 8 byte quantities.help + man
--longlist 0|1help
-l 0|1use 4 byte list length when 1, safe to ignore (def: 0 (2 byte list length))help + man
-d, --dummyprepare for but do not execute the SCSI REASSIGN BLOCKS command. (in the manual page but not in --help)man
-g, --grownuse the SCSI READ DEFECT DATA (10) command to determine the number of elements in the "grown defect list". (in the manual page but not in --help)man
-h, --helpoutput the usage message then exit. (in the manual page but not in --help)man
-H, --hexprint response in hex (for -g, --grown, -p or --primary). (in the manual page but not in --help)man
-p, --primaryuse the SCSI READ DEFECT DATA (10) command to determine the number of elements in the "primary defect list" which is established during the manufacturing process. (in the manual page but not in --help)man
-v, --verboseincrease the level of verbosity, (i.e. debug output). (in the manual page but not in --help)man
-V, --versionprint the version string and then exit. (in the manual page but not in --help)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.