Usage: sdparm [--all] [--dbd] [--examine] [--flexible] [--get=STR] [--hex] [--long] [--num-desc] [--out-mask=OM] [--page=PG[,SPG]] [--quiet] [--readonly] [--six] [--transport=TN] [--vendor=VN] [--verbose] DEVICE [DEVICE...] sdparm [--clear=STR] [--defaults] [--dummy] [--flexible] [--page=PG[,SPG]] [--quiet] [--readonly] [--save] [--set=STR] [--six] [--transport=TN] [--vendor=VN] [--verbose] DEVICE [DEVICE...] sdparm << for more usages, see 'sdparm -hh' >> where mode page read (1st usage) and change (2nd usage) options are: --all | -a list all known pages and fields for given DEVICE --clear=STR | -c STR clear (zero) field value(s), or set to 'val' --dbd | -B set DBD bit in mode sense cdb --defaults | -D set a mode page to its default values when use twice set all pages to their defaults --dummy | -d don't write back modified mode page --examine | -E cycle through mode or vpd page numbers (default with '-a': only check pages with known fields) --flexible | -f compensate for common errors, relax some checks --get=STR | -g STR get (fetch) field value(s), by acronym or pos --hex | -H output in hex rather than name/value pairs --long | -l add description to field output --num-desc | -n report number of mode page descriptors --out-mask=OM | -o OM select whether current, changeable, default and/or saveable values out, (def: all(0xf) --page=PG[,SPG] | -p PG[,SPG] page (and optionally subpage) number [or abbrev] to output, change or enumerate --quiet | -q suppress DEVICE vendor/product/revision string line --readonly | -r force read-only open of DEVICE (def: depends on operation). Mainly for ATA disks --save | -S place mode changes in saved page as well --set=STR | -s STR set field value(s) to 1, or to 'val' --six | -6 use 6 byte SCSI mode cdbs (def: 10 byte) --transport=TN | -t TN transport protocol number [or abbrev] --vendor=VN | -M VN vendor (manufacturer) number [or abbrev] --verbose | -v increase verbosity View or change SCSI mode page fields (e.g. of a disk or CD/DVD drive). STR can be [=val] or ::[=val]. Use '-h' or '--help' twice for help on other usages including executing some simple commands, reading and decoding VPD pages, enumerating internal tables of mode and VPD pages, and decoding response data supplied in a file or stdin (rather than from a DEVICE).