HD Doctor Logo

Journaling (Filesystem): What it is, how it works and why it matters

Direct answer

Journaling is the technique used by modern filesystems to record (in a log called journal) intended changes before applying them to data blocks.

Full definition

On power loss or crash, the filesystem replays the journal on next mount, ensuring consistency without a full fsck (which on large volumes can take hours). Common modes: data journaling (journals data and metadata, slower and safer), ordered (ext4 default, journals only metadata but enforces order), writeback (faster, less safe). In recovery, the journal often holds valuable information: partially written files, pending transactions, recently freed blocks. On ext4, debugfs or JournalParser can extract recent history useful for forensics or recovering a file deleted seconds before the crash.

Need to recover data or have a technical question?

Senior engineers in PT, EN and ES.

Related terms