xfs_check
Quick Reference
Command Name:
xfs_check
Category:
filesystem
Platform:
Linux/Unix
Basic Usage:
Common Use Cases
Syntax
xfs_check [-f] [-i ino]... [-b bno]... special
Options
Note: xfs_check is deprecated and has been replaced by xfs_repair. It is not installed by default in most recent Linux distributions.
Option | Description |
---|---|
-f |
Check for fragmentation |
-i ino |
Check the specified inode |
-b bno |
Check the specified block |
special |
The special file containing the XFS filesystem (e.g., /dev/sdb1) |
Recommended Alternative
Instead of using xfs_check, it is recommended to use xfs_repair with the -n option:
Command | Description |
---|---|
xfs_repair -n /dev/device |
Check filesystem consistency without modifying anything |
Examples
How to Use These Examples
The examples below show common ways to use the xfs_check
command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.