After a power failure, mounting an XFS volume fails with `mount: /data: wrong fs type, bad option, bad superblock on /dev/sdb1`.
IntermediateTroubleshootingDisk space, inodes and filesystems
Answer
Likely causes → Corrupted log/superblock, wrong device name, or the XFS log needs replay.
Diagnose →
lsblk -f
sudo blkid /dev/sdb1
dmesg -T | tail -30
sudo xfs_repair -n /dev/sdb1 # dry run
Fix → Mount once normally to replay the log; if it fails, run xfs_repair /dev/sdb1. Use xfs_repair -L (zero the log) only as a last resort, as it can lose recent changes. Take a snapshot first.
Prevent → UPS/redundancy, and storage with write cache protection.
More on Disk space, inodes and filesystems
Writes fail with `No space left on device`, but `df -h` shows the filesystem is only 40% used.Intermediate`df -h` shows `/` at 100%, but `du -sh /` only adds up to 12 GB on a 50 GB disk.Intermediate`du` and `df` disagree by 20 GB and `lsof +L1` shows nothing. What else could hide the space?AdvancedA cron job that runs `rm /var/spool/app/*` fails with `/bin/rm: Argument list too long`.Beginner`touch /data/test` returns `touch: cannot touch '/data/test': Read-only file system`.Beginner`mount -a` says `mount: /backup: can't find UUID=3f1a...` after someone recreated the filesystem.Beginner