OS Manuals

/usr/bin/sg_sync

SCSI utilities for Linux, Unix and Windows

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

Usage: sg_sync    [--16] [--count=COUNT] [--group=GN] [--help] [--immed]
                  [--lba=LBA] [--sync-nv] [--timeout=SECS] [--verbose]
                  [--version] DEVICE
  where:
    --16|-S             calls SYNCHRONIZE CACHE(16) (def: is 10 byte
                        variant)
    --count=COUNT|-c COUNT    number of blocks to sync (def: 0 which
                              implies rest of device)
    --group=GN|-g GN    set group number field to GN (def: 0)
    --help|-h           print out usage message
    --immed|-i          command returns immediately when set else wait
                        for 'sync' to complete
    --lba=LBA|-l LBA    logical block address to start sync operation
                        from (def: 0)
    --sync-nv|-s        synchronize to non-volatile storage (if distinct
                        from medium). Obsolete in sbc3r35d.
    --timeout=SECS|-t SECS    command timeout in seconds, only active
                              if '--16' given (def: 60 seconds)
    --verbose|-v        increase verbosity
    --version|-V        print version string and exit

Performs a SCSI SYNCHRONIZE CACHE(10 or 16) command
Options (10)
OptionDescriptionSource
--count, -c COUNT|-cwhere COUNT is the number of blocks to synchronize from and including LBA.help + man
--group, -g GN|-gwhere GN is the group number which can be between 0 and 63 inclusive.help + man
--lba, -l LBA|-lwhere LBA is the lowest logical block address in the cache to synchronize to the medium.help + man
--timeout, -t SECS|-twhere SECS is the number of seconds the OS allows the SYNCHRONIZE CACHE(16) to complete before it tries to cancel the command.help + man
-S, --16performs a SYNCHRONIZE CACHE(16) command. (in the manual page but not in --help)man
-h, --helpoutput the usage message then exit. (in the manual page but not in --help)man
-i, --immedsets the IMMED bit in the SYNCHRONIZE CACHE command. (in the manual page but not in --help)man
-s, --sync-nvsynchronize the (volatile) cache with the non-volatile cache. (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.