DWARFSCK(1)
π NAME π
Okay bestie, this is dwarfsck from the General Commands Manual β literally the check-DwarFS-image girlie. dwarfsck β check DwarFS image. Periodt. π
β¨ SYNOPSIS β¨
dwarfsck [-i] image [options...]
π¦ DESCRIPTION π¦
So dwarfsck does a full check of a DwarFS filesystem image. No cap. π«Ά
If everything works, it shows you details about the filesystem depending on the detail level you specified. If it finds an error, it exits with a non-zero exit code β not subtle, just honest. π
π OPTIONS π
-i,--input=fileβ path to the filesystem image. Like, where the image lives. π-d,--detail=valueβ level of filesystem information detail. This can be a numeric level between0and7, or a comma-separated list of feature names. The default corresponds to a level of2. The feature names are shown in the command help. β¨-q,--quietβ don't produce any output unless there is an error. Silent-mode icon behavior. π€«-v,--verboseβ produce verbose output, where applicable. She's chatty. π¬-O,--image-offset=value|autoβ specify the byte offset at which the filesystem is located in the image. Useautoto detect the offset automatically. This is also the default. This is only useful for images that have some header located before the actual filesystem data. π―-H,--print-headerβ print the header located before the filesystem image to stdout. If no header is present, the program will exit with exit code2and emit a warning. Heads up, bestie. π¨-l,--listβ list all entries in the file system image. Uses output similar totar -t. With--verbose, also print details about each entry. Iconic little directory moment. π--checksum=nameβ produce a checksum using the specified algorithm for each regular file in the file system image. This can be used to easily verify the file system image against local files, e.g.: π₯
dwarfsck --checksum=sha512 /tmp/fs.dwarfs | sha512sum --check
-n,--num-workers=valueβ number of worker threads used for integrity checking. The more helpers, the more teamwork. πͺ-s,--cache-size=valueβ size of the block cache, in bytes. You can append suffixes (k,m,g) to specify the size in KiB, MiB and GiB, respectively. Note that this is not the upper memory limit of the process, as there may be blocks in flight that are not stored in the cache. Also, each block that hasn't been fully decompressed yet will carry decompressor state along with it, which can use a significant amount of additional memory. Important caveat, don't skip it. π§--check-integrityβ instead of performing a fast checksum check, perform a (much slower) integrity check using the embedded SHA-512/256 hashes. Slow and thorough. She's taking her time. β³--no-checkβ don't even perform a fast checksum check on the file system blocks. The metadata will still be checked to make sure it can safely be read. Use this if you want to quickly query file system information rather than performing an actual file system check. Lowkey just peeking. π-j,--jsonβ print a simple JSON representation of the filesystem metadata. Please note that the format is not stable. The level of detail also depends on the--detailswitch. This can be useful in conjunction with thejqtool to extract file system information, for example generate a list of all categories in a file system image: π
$ dwarfsck image.dwarfs --no-check -j | jq -r '.categories | keys .[]'
<default>
incompressible
pcmaudio/metadata
pcmaudio/waveform
--export-metadata=fileβ export all filesystem metadata tofilein JSON format. Write to stdout iffileis-. Dump it, bestie. π€--log-level=nameβ specify a logging level. πͺ΅--log-with-contextβ enable logging context regardless of level. By default, context is enabled if the level is verbose, debug or trace. Context girlies stay winning. π§-h,--helpβ show program help, including option defaults. The classic. π«Ά--manβ if the project was built with support for built-in manual pages, this option will show the manual page. If supported by the terminal and a suitable pager (e.g.less) is found, the manual page is displayed in the pager. Fancy page-viewer moment. π
π ENVIRONMENT VARIABLES π
See dwarfs-env(7) dwarfs-env.md for environment variables that influence the behavior of dwarfsck. Env vars are doing their little background thing. π
π AUTHOR π
Written by Marcus Holland-Moritz. π Respect.
π COPYRIGHT π
Copyright (C) Marcus Holland-Moritz. π
π₯ SEE ALSO π₯
mkdwarfs(1)mkdwarfs.mddwarfs(1)dwarfs.mddwarfsextract(1)dwarfsextract.mddwarfs-format(5)dwarfs-format.mddwarfs-env(7)dwarfs-env.md
That's the whole page, bestie π«Ά β signed off with January 1980 and the manual name DWARFSCK(1). Slay. π
β¨
π¦ where this page comes from
- nixpkgs unstable: dwarfs 0.15.8
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms