# man > fsck.cramfs(8)

---
type: CommandReference
command: fsck.cramfs
mode: man
section: 8
source: man-pages
---

## Quick Reference

- `fsck.cramfs file` — check a cramfs file system
- `fsck.cramfs -v file` — enable verbose messaging during check
- `fsck.cramfs --extract file` — test decompression of the whole file system
- `fsck.cramfs --extract=/dir file` — extract contents to a directory
- `fsck.cramfs -b 4096 --extract file` — specify blocksize (must match creation) for extraction

## Name

fsck.cramfs - fsck compressed ROM file system

## Synopsis

**fsck.cramfs** [options] _file_

## Options

- `-v, --verbose` — enable verbose messaging
- `-b, --blocksize` — use this blocksize (defaults to page size); must equal creation-time value; only used with `--extract`
- `--extract[=directory]` — test decompression of the whole file system; optionally extract contents to _directory_
- `-a` — silently ignored (for compatibility)
- `-y` — silently ignored (for compatibility)
- `-V, --version` — display version and exit
- `-h, --help` — display help text and exit

## See Also

- [mount(8)](https://man7.org/linux/man-pages/man8/mount.8.html)
- [mkfs.cramfs(8)](https://man7.org/linux/man-pages/man8/mkfs.cramfs.8.html)

## Exit Codes

- `0` — success
- `4` — file system was left uncorrected
- `8` — operation error (e.g., unable to allocate memory)
- `16` — usage information was printed