Friday | 08 DEC 2023
2023-11-11

xfs_repair

cheatsheet

A cheatsheet to fixing up xfs issues.

Check what the filesystem type is:

df -T

xfs_repair requires the folder to be unmounted, both to fix the device and to check for errors.

umount /home

If the folder is busy and you need to find out which processes are in it:

fuser -um /home

Kill the processes:

fuser -km /home

If you need to install fuser:

yum install psmisc

Check for errors on the device:

xfs_repair -n /dev/sda5