OS Manuals

/usr/bin/sg_referrals

SCSI utilities for Linux, Unix and Windows

From sg3-utils 1.49-r3 (enterprise-packages), captured 2026-11-08 by running sg_referrals --help (exit 0). permalink

Usage: sg_referrals  [--help] [--hex] [--lba=LBA] [--maxlen=LEN]
                     [--one-segment] [--raw] [--readonly] [--verbose]
                     [--version] DEVICE
  where:
    --help|-h         print out usage message
    --hex|-H          output in hexadecimal
    --lba=LBA|-l LBA    starting LBA (logical block address) (def: 0)
    --maxlen=LEN|-m LEN    max response length (allocation length in cdb)
                           (def: 0 -> 256 bytes)
    --one-segment|-s    return information about the specified segment only
    --raw|-r          output in binary
    --verbose|-v      increase verbosity
    --version|-V      print version string and exit

Performs a SCSI REPORT REFERRALS command (SBC-3)
Options (9)
OptionDescriptionSource
--lba, -l LBA|-lwhere LBA is the Logical Block Address (LBA) in the first user data segment the DEVICE should report the referrals parameter data for.help + man
--maxlen, -m LEN|-mmax response length (allocation length in cdb) (def: 0 -> 256 bytes)help + man
-h, --helpoutput the usage message then exit. (in the manual page but not in --help)man
-H, --hexoutput response to this command in ASCII hex. (in the manual page but not in --help)man
-s, --one-segmentreport the user data segment of the segment specified by the LBA parameter only. (in the manual page but not in --help)man
-r, --rawoutput response in binary (to stdout). (in the manual page but not in --help)man
-R, --readonlyopen the DEVICE read-only (e.g. in Unix with the O_RDONLY flag). (in the manual page but not in --help)man
-v, --verboseincrease the level of verbosity, (i.e. debug output). (in the manual page but not in --help)man
-V, --versionprint the version string and then exit. (in the manual page but not in --help)man
Exit status (1) from the manual page
0it is successful

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.