OS Manuals

/usr/bin/sg_reset_wp

SCSI utilities for Linux, Unix and Windows

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

Usage: sg_reset_wp  [--all] [--count=ZC] [--help] [--verbose]
                    [--version] [--zone=ID] DEVICE
  where:
    --all|-a           sets the ALL flag in the cdb
    --count=ZC|-C ZC    set zone count field (def: 0)
    --help|-h          print out usage message
    --verbose|-v       increase verbosity
    --version|-V       print version string and exit
    --zone=ID|-z ID    ID is the starting LBA of the zone whose
                       write pointer is to be reset

Performs a SCSI RESET WRITE POINTER command. ID is decimal by default,
for hex use a leading '0x' or a trailing 'h'. Either the --zone=ID
or --all option needs to be given.
Options (6)
OptionDescriptionSource
--count, -C ZC|-CZC is placed in the Zone Count field in the cdb of the RESET WRITE POINTER command supported by this utility.help + man
--zone, -z ID|-zID is the starting LBA of the zone whose write pointer is to be resethelp + man
-a, --allsets the ALL field in the cdb. (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
-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.