Filesystem repair rewrites metadata to restore internal consistency. It can discard damaged references or data and can worsen loss when storage hardware is failing. Treat repair as a recovery operation: preserve evidence and recoverable data first, then use the tool documented for the exact filesystem.
The Filesystem · Lesson 10
Filesystem Repair
Learn how to diagnose filesystem damage and choose a type-specific, offline repair workflow with backups.