Filesystem Errors
Cheat sheet · https://pcornel.dk/topic.php?topic=2916
Answer
Filesystem errors are corruption or I/O errors reported by the kernel; the filesystem may be remounted read-only to protect data.
Remember
Check the disk first (dmesg, smartctl -a). Run fsck (e2fsck, xfs_repair) only on an unmounted filesystem. Take a backup before repairing if possible.
First checks
journalctl -b -p err— errors this bootsystemctl --failed— failed unitsdf -h; df -i— space and inodesss -tulpn— listening socketsdmesg -T | tail— recent kernel messages
Commands
journalctl -k -p warning --no-pager- Bounded read-only observation/validation for current-boot kernel warning-or-higher records including filesystem, block,…
Verify in this order
disk or software fault → kernel detects inconsistency → remount read-only → fsck/repair
Where it usually breaks
First mismatch in persistent intent → provider/parser/generator → kernel/userspace runtime → dependency/security context → logs/counters → consumer-visible read-back; preserve identity/native diagnostic/pre-state before mutation.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=2916