OS Manuals

/usr/bin/sg_map26

SCSI utilities for Linux, Unix and Windows

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

Usage: sg_map26 [--dev_dir=DIR] [--given_is=0..1] [--help] [--result=0..3]
                [--symlink] [--verbose] [--version] DEVICE
  where:
    --dev_dir=DIR | -d DIR    search in DIR for resulting special
                            (def: directory of DEVICE or '/dev')
    --given_is=0..1 | -g 0..1    variety of given DEVICE
                                 0->block or char special (or symlink to)
                                   1->sysfs device, 'dev' or parent
    --help | -h       print out usage message
    --result=0..3 | -r 0..3    variety of file(s) to find
                               0->mapped block or char special(def)
                               1->mapped sysfs path
                               2->matching block or char special
                               3->matching sysfs path
    --symlink | -s    symlinks to special included in result
    --verbose | -v    increase verbosity of output
    --version | -V    print version string and exit

Maps SCSI device node to corresponding generic node (and vv). Users may
find the lsscsi utility more convenient as it doesn't need root
permissions.
Options (7)
OptionDescriptionSource
--dev_dir, -d DIRwhere DIR is the directory to search for resultant device special files in (or symlinks to same).help + man
--given_is, -g 0..1specifies the DEVICE is either a device special file (when the argument is 0), or a sysfs 'dev' file (when the argument is 1).help + man
--help, -houtput the usage message then exit.help + man
--result, -r 0..3variety of file(s) to find 0->mapped block or char special(def) 1->mapped sysfs path 2->matching block or char special 3->matching sysfs pathhelp + man
--symlink, -swhen a device special file is being sought (i.e. when '--result=0' (the default) or '--result=2') then also look for symlinks to that device special file in the same directory.help + man
--verbose, -vincrease the level of verbosity, (i.e. debug output).help + man
--version, -Vprint the version string and then exit.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.