Usage: sg_modes [--all] [--control=PC] [--dbd] [--dbout] [--examine] [--flexible] [--help] [--hex] [--list] [--llbaa] [--maxlen=LEN] [--multiple] [--page=PG[,SPG]] [--raw] [-R] [--readwrite] [--six] [--verbose] [--version] [DEVICE] where: --all|-a get all mode pages supported by device use twice to get all mode pages and subpages --control=PC|-c PC page control (if not given: 0) 0: current, 1: changeable, 2: (manufacturer's) defaults, 3: saved --dbd|-d disable block descriptors (DBD field in cdb) --dbout|-D disable block descriptor output --examine|-e examine pages # 0 through to 0x3e, note if found --flexible|-f be flexible, cope with MODE SENSE 6/10 response mixup --help|-h print usage message then exit --hex|-H output full response in hex use twice to output page number and header in hex --list|-l list common page codes for device peripheral type, if no device given then assume disk type --llbaa|-L set Long LBA Accepted (LLBAA field in mode sense (10) cdb) --maxlen=LEN|-m LEN max response length (allocation length in cdb) (def: 0 -> 4096 or 252 (for MODE SENSE 6) bytes) --multiple|-M output multiple page controls rather`than one --page=PG|-p PG page code to fetch (def: 63). May be acronym --page=PG,SPG|-p PG,SPG page code and subpage code to fetch (defs: 63,0) --raw|-r output response in binary to stdout -R mode page response to stdout, a byte per line in ASCII hex (same result as '--raw --raw') --readwrite|-w open DEVICE read-write (def: open read-only) --six|-6|-s use MODE SENSE(6), by default uses MODE SENSE(10) --verbose|-v increase verbosity --old|-O use old interface (use as first option) --version|-V output version string then exit Performs a SCSI MODE SENSE (10 or 6) command. To access and possibly change mode page fields see the sdparm utility.