OS Manuals

/usr/bin/sg_rmsn

SCSI utilities for Linux, Unix and Windows

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

Usage: sg_rmsn   [--help] [--raw] [--readonly] [--verbose] [--version]
                 DEVICE
  where:
    --help|-h       print out usage message
    --raw|-r        output serial number to stdout (potentially binary)
    --readonly|-R    open DEVICE read-only (def: open it read-write)
    --verbose|-v    increase verbosity
    --version|-V    print version string and exit

Performs a SCSI READ MEDIA SERIAL NUMBER command
Options (5)
OptionDescriptionSource
-h, --helpoutput the usage message then exit.man
-r, --rawsends the serial number (if found) to stdout.man
-R, --readonlyopens the DEVICE read-only rather than read-write which is the default.man
-v, --verboseincrease the level of verbosity, (i.e. debug output).man
-V, --versionprint the version string and then exit.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.