sg_readcap --version (return code: 0)
Version string: 3.95 20151219
sg_readcap --help (return code: 0)
Usage: sg_readcap [--brief] [--help] [--hex] [--lba=LBA] [--long] [--16]
[--pmi] [--raw] [--readonly] [--verbose] [--version]
[--zbc] DEVICE
where:
--brief|-b brief, two hex numbers: number of blocks and block size
--help|-h print this usage message and exit
--hex|-H output response in hexadecimal to stdout
--lba=LBA|-L LBA yields the last block prior to (head movement) delay
after LBA [in decimal (def: 0) valid with '--pmi']
--long|-l use READ CAPACITY (16) cdb (def: use 10 byte cdb)
--16 use READ CAPACITY (16) cdb (same as --long)
--pmi|-p partial medium indicator (without this option shows
total disk capacity) [made obsolete in sbc3r26]
--raw|-r output response in binary to stdout
--readonly|-R open DEVICE read-only (def: RCAP(16) read-write)
--verbose|-v increase verbosity
--version|-V print version string and exit
--zbc|-z show rc_basis ZBC field (implies --16)
Perform a SCSI READ CAPACITY (10 or 16) command