SCSI Read Capacity Command

The SCSI Read Capacity command is used to obtain data capacity information from a target device.

The command descriptor block (CDB) structure is:

bit→
↓byte
7 6 5 4 3 2 1 0
0 Operation code = 25h
1 LUN Reserved RelAdr
2 LBA (MSB)



LBA (LSB)
3
4
5
6 Reserved
7 Reserved
8 Reserved PMI
9 Control

The special control fields in the CDB have the following meaning:

  • RelAdr - indicates that the logical block address (LBA) value is relative (only used with linked commands).
  • PMI - partial medium indicator:
    • 0 - return value for the last LBA
    • 1 - return value for the last LBA after which a substantial delay in data transfer will be encountered (e.g., the current track or cylinder)

The target will return capacity data structured as follows:

bit→
↓byte
7 6 5 4 3 2 1 0
0–3 Returned LBA
4–7 Block length in bytes

Famous quotes containing the words read, capacity and/or command:

    I do not know but it is too much to read one newspaper a week. I have tried it recently, and for so long it seems to me that I have not dwelt in my native region. The sun, the clouds, the snow, the trees say not so much to me. You cannot serve two masters.
    Henry David Thoreau (1817–1862)

    Mankind’s common instinct for reality ... has always held the world to be essentially a theatre for heroism. In heroism, we feel, life’s supreme mystery is hidden. We tolerate no one who has no capacity whatever for it in any direction. On the other hand, no matter what a man’s frailties otherwise may be, if he be willing to risk death, and still more if he suffer it heroically, in the service he has chosen, the fact consecrates him forever.
    William James (1842–1910)

    I, who should command a regiment,
    Do amble amiably here, O God,
    One of the neat ones in your awkward squad.
    Norman Cameron (b. 1905)