{
    "mode": "man",
    "parameter": "scsi_readcap",
    "section": "8",
    "url": "https://www.chedong.com/phpMan.php/man/scsi_readcap/8/json",
    "generated": "2026-10-04T16:44:34Z",
    "synopsis": "scsireadcap [--brief] [--help] [--long] [--verbose] DEVICE [DEVICE]*",
    "sections": {
        "NAME": {
            "content": "scsireadcap - do SCSI READ CAPACITY command on disks\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "scsireadcap [--brief] [--help] [--long] [--verbose] DEVICE [DEVICE]*\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "This  bash  shell  script calls the sgreadcap utility on each given DEVICE. This will send a\nSCSI READ CAPACITY command to each DEVICE.\n\nThe default action of this script is to send the 10 byte cdb  READ  CAPACITY(10)  command  to\neach  DEVICE. If a response indicates the number of blocks is greater than or equal to '232\n- 1' then the READ CAPACITY(16) is sent and its response is output.\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "Arguments to long options are mandatory for short options as well.\n",
            "subsections": [
                {
                    "name": "-b --brief",
                    "content": "shortens the output to two hexadecimal numbers, both prefixed by '0x'.  The first num‐\nber is the number of blocks available and the second is the size  of  each  blocks  in\nbytes  (e.g.  '0x12a19eb0 0x200'). If an error is detected '0x0 0x0' is output and the\nscript continues if there are more DEVICEs.\n",
                    "flag": "-b",
                    "long": "--brief"
                },
                {
                    "name": "-h --help",
                    "content": "print out the usage message then exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-l --long",
                    "content": "the default is to send the READ CAPACITY(10) command (i.e. the 10 byte  cdb  variant).\nWhen  this  option  is given the READ CAPACITY(16) command is sent. The latter command\nyields more information in its response.\n",
                    "flag": "-l",
                    "long": "--long"
                },
                {
                    "name": "-v --verbose",
                    "content": "increase level or verbosity.\n",
                    "flag": "-v",
                    "long": "--verbose"
                }
            ]
        },
        "EXIT STATUS": {
            "content": "The exit status of this script is 0 when it is successful. Otherwise the exit status is  that\nof the last sgreadcap utility called. See the sg3utils(8) man page.\n",
            "subsections": []
        },
        "AUTHORS": {
            "content": "Written by D. Gilbert\n",
            "subsections": []
        },
        "COPYRIGHT": {
            "content": "Copyright © 2009-2013 Douglas Gilbert\nThis software is distributed under a FreeBSD license. There is NO warranty; not even for MER‐\nCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "",
            "subsections": [
                {
                    "name": "sg_readcap (sg3_utils)",
                    "content": "sg3utils-1.36                                May 2013                               SCSIREADCAP(8)"
                }
            ]
        }
    },
    "summary": "scsireadcap - do SCSI READ CAPACITY command on disks",
    "flags": [
        {
            "flag": "-b",
            "long": "--brief",
            "arg": null,
            "description": "shortens the output to two hexadecimal numbers, both prefixed by '0x'. The first num‐ ber is the number of blocks available and the second is the size of each blocks in bytes (e.g. '0x12a19eb0 0x200'). If an error is detected '0x0 0x0' is output and the script continues if there are more DEVICEs."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "print out the usage message then exit."
        },
        {
            "flag": "-l",
            "long": "--long",
            "arg": null,
            "description": "the default is to send the READ CAPACITY(10) command (i.e. the 10 byte cdb variant). When this option is given the READ CAPACITY(16) command is sent. The latter command yields more information in its response."
        },
        {
            "flag": "-v",
            "long": "--verbose",
            "arg": null,
            "description": "increase level or verbosity."
        }
    ],
    "examples": [],
    "see_also": []
}