OS Manuals

/usr/bin/grub-fstest

the grand unified bootloader for uefi

From grub-efi 2.16-r1 (enterprise-packages), captured 2026-11-08 by running grub-fstest --help (exit 0). permalink

Usage: grub-fstest [OPTION...] IMAGE_PATH COMMANDS
Debug tool for filesystem driver.

 Commands:
  blocklist FILE             Display blocklist of FILE.
  cat FILE                   Copy FILE to standard output.
  cmp FILE LOCAL             Compare FILE with local file LOCAL.
  cp FILE LOCAL              Copy FILE to local file LOCAL.
  crc FILE                   Get crc32 checksum of FILE.
  hex FILE                   Show contents of FILE in hex.
  ls PATH                    List files in PATH.
  xnu_uuid DEVICE            Compute XNU UUID of the device.
  zfs-bootfs ZFS_DATASET     Compute ZFS dataset bootpath.

  -c, --diskcount=NUM        Specify the number of input files.
  -C, --crypto               Mount crypto devices.
  -d, --debug=STRING         Set debug environment variable.
  -K, --zfs-key=FILE|prompt  Load zfs crypto key.
  -n, --length=NUM           Handle N bytes in output file.
  -r, --root=DEVICE_NAME     Set root device.
  -s, --skip=NUM             Skip N bytes from output file.
  -u, --uncompress           Uncompress data.
  -v, --verbose              print verbose messages.

  -?, --help                 give this help list
      --usage                give a short usage message
  -V, --version              print program version

Mandatory or optional arguments to long options are also mandatory or optional
for any corresponding short options.
Options (12)
OptionDescriptionSource
-c, --diskcount NUMSpecify the number of input files.help
-C, --cryptoMount crypto devices.help
-d, --debug STRINGSet debug environment variable.help
-K, --zfs-key FILE|promptLoad zfs crypto key.help
-n, --length NUMHandle N bytes in output file.help
-r, --root DEVICE_NAMESet root device.help
-s, --skip NUMSkip N bytes from output file.help
-u, --uncompressUncompress data.help
-v, --verboseprint verbose messages.help
-?, --helpgive this help listhelp
--usagegive a short usage messagehelp
-V, --versionprint program versionhelp

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