Pcornel
Linux · Linux Troubleshooting

Filesystem Errors

Cheat sheet · https://pcornel.dk/topic.php?topic=2916

Back to the Topic

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 boot
  • systemctl --failed — failed units
  • df -h; df -i — space and inodes
  • ss -tulpn — listening sockets
  • dmesg -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

Confirmation

Confirm action

Continue?