OS Manuals

/usr/bin/sginfo

SCSI utilities for Linux, Unix and Windows

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

/usr/bin/sginfo: invalid option -- '-'
Error: sginfo: Unknown option
Usage: sginfo [-options] [device] [replacement_values]
	Allowed options are:
	-6    Do 6 byte mode sense and select commands (def: 10 bytes).
	-a    Display inquiry info, serial # and all mode pages.
	-A    Similar to '-a' but displays all subpages as well.
	-c    Access Caching Page.
	-C    Access Control Mode Page.
	-d    Display defect lists (default format: index).
	-D    Access Disconnect-Reconnect Page.
	-e    Access Read-Write Error Recovery page.
	-E    Access Control Extension page.
	-f    Access Format Device Page.
	-Farg Format of the defect list:
		-Flogical  - logical block addresses (32 bit)
		-Flba64    - logical block addresses (64 bit)
		-Fphysical - physical blocks
		-Findex    - defect bytes from index
		-Fhead     - sort by head
	-g    Access Rigid Disk Drive Geometry Page.
	-G    Display 'grown' defect list (default format: index).
	-i    Display information from INQUIRY command.
	-I    Access Informational Exception page.
	-l    List known scsi devices on the system [DEPRECATED]
	-n    Access Notch and Partition Page.
	-N    Negate (stop) storing to saved page (active with -R).
	-P    Access Power Condition Page.
	-r    List known raw scsi devices on the system
	-s    Display serial number (from INQUIRY VPD page).
	-t<pn[,sp]> Access mode page <pn> [subpage <sp>] and decode.
	-T    Trace commands (for debugging, double for more)
	-u<pn[,sp]> Access mode page <pn> [subpage <sp>], output in hex
	-v    Show version number
	-V    Access Verify Error Recovery Page.
	-z    single fetch mode pages (rather than double fetch)

	Only one of the following three options can be specified.
	None of these three implies the current values are returned.
	-m    Access modifiable fields instead of current values
	-M    Access manufacturer defaults instead of current values
	-S    Access saved defaults instead of current values

	-X    Use list (space separated values) rather than table.
	-R    Replace parameters - best used with -X (expert use only)
	      [replacement parameters placed after device on command line]

	      sginfo version: 2.48 [20260508]; See man page for more details.
Options (34)
OptionDescriptionSource
-6Do 6 byte mode sense and select commands (def: 10 bytes).help + man
-aDisplay some INQUIRY data and the unit serial number followed by all mode pages reported by the device.help + man
-ADisplay some INQUIRY data and the unit serial number followed by all mode pages and all mode subpages reported by the device.help + man
-cAccess information in the Caching mode page.help + man
-CAccess information in the Control mode Page.help + man
-dDisplay defect lists (default format: index).help + man
-DAccess information in the Disconnect-Reconnect mode page.help + man
-eAccess information in the Error Recovery mode page.help + man
-EAccess information in the Control Extension mode page.help + man
-fAccess information in the Format Device mode page.help + man
-Flogical- logical block addresses (32 bit)help
-Flba64- logical block addresses (64 bit)help
-Findex- defect bytes from indexhelp
-Fhead- sort by headhelp
-gAccess information in the Rigid Disk Drive Geometry mode page.help + man
-GDisplay 'grown' defect list (default format: index).help + man
-iDisplay the response to a standard INQUIRY command.help + man
-IAccess the Informational Exceptions mode page.help + man
-lList known scsi devices on the system [DEPRECATED]help + man
-nAccess information in the Notch and Partition mode page.help + man
-NNegate (i.e. stop) mode page changes being placed in the "saved" page (by default changes go to the current and the saved page).help + man
-PAccess information in the Power Condition mode page.help + man
-rDisplay all raw (or primary) SCSI device names visible in the /dev directory.help + man
-sDisplay information in the unit serial number page which is a INQUIRY command variant.help + man
-TTrace commands to obtain more verbose output (for debugging).help + man
-vDisplay version string then exit.help + man
-VAccess information in the Verify Error Recovery mode page.help + man
-zdo a single fetch for mode pages (over-estimating the expected length of the returned response).help + man
-mDisplay modifiable fields instead of current valueshelp + man
-MDisplay manufacturer's defaults instead of current valueshelp + man
-SDisplay saved defaults instead of current valueshelp + man
-XUse list (space separated values) rather than table.help + man
-RReplace parameters - best used with -X (expert use only) [replacement parameters placed after device on command line]help + man
-FargFormat of the defect lists: -Flogical - logical block addresses (32 bit) -Flba64 - logical block addresses (64 bit) -Fphysical - physical blocks -Findex - defect bytes from index -Fhead - sort by… (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.