OS Manuals

/usr/bin/sg_reset

SCSI utilities for Linux, Unix and Windows

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

Usage: sg_reset [--bus] [--device] [--help] [--host] [--no-esc] [--no-escalate] [--target]
                [--verbose] [--version] DEVICE
  where:
    --bus|-b        SCSI bus reset (SPI concept), might be all targets
    --device|-d     device (logical unit) reset
    --help|-h       print usage information then exit
    --host|-H       host (bus adapter: HBA) reset
    --no-esc|-N     overrides default action and only does reset requested
    --no-escalate   The same as --no-esc|-N
    --target|-t     target reset. The target holds the DEVICE and perhaps
                    other LUs
    --verbose|-v    increase the level of verbosity
    --version|-V    print version number then exit

Use SG_SCSI_RESET ioctl to send a reset to the host/bus/target/device
along the DEVICE path. The DEVICE itself is known as a logical unit (LU)
in SCSI terminology.
Be warned: if the '-N' option is not given then if '-d' fails then a
target reset ('-t') is instigated. And it '-t' fails then a bus reset
('-b') is instigated. And if '-b' fails then a host reset ('h') is
instigated. It is recommended to use '-N' to stop the reset escalation.
Options (9)
OptionDescriptionSource
--no-escalateThe same as -N, --no-esc.help + man
-b, --busattempt a SCSI bus reset. (in the manual page but not in --help)man
-d, --deviceattempt a SCSI device reset. (in the manual page but not in --help)man
-z, --helpprint the usage message then exit. (in the manual page but not in --help)man
-H, --hostattempt a host reset. (in the manual page but not in --help)man
-N, --no-escwithout this option, if a device reset (--device) fails then it will escalate to a target reset. (in the manual page but not in --help)man
-t, --targetattempt a SCSI target reset. (in the manual page but not in --help)man
-v, --verboseincrease the degree of verbosity (debug messages). (in the manual page but not in --help)man
-V, --versionprints the version string then exits. (in the manual page but not in --help)man

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