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:

    “Let him read what is proper to him, and not waste his memory on a crowd of mediocrities.”
    —Ralph Waldo Emerson (1803–1882)

    “Managing a tantrum involves nothing less than the formation of character. Even the parent’s capacity to cope well with conflict can improve with this experience. When a parent knows he is right and does not give in for the sake of temporary peace, everybody wins. The parent learns that denying some pleasure does not create a neurotic child and the child learns that she can survive momentary frustration.”
    —Alicia F. Lieberman (20th century)

    “The Modernist’s command was Pound’s “Make it New.” The postmodern imperative is “Get it Used.” The more used the better.”
    —Andrei Codrescu (b. 1946)