xfs_ncheck(8)
β¨ NAME β¨
okay so bestie, this is xfs_ncheck (the 8 just means it's a System Manager's Manual page, from the System Manager's Manual π). It's how you go from an inode number to a pathname for XFS. "generate pathnames from i-numbers for XFS" π¦
π SYNOPSIS π
xfs_ncheck [ -i ino ] ... [ -f ] [ -s ] [ -l logdev ] device
xfs_ncheck -V
πΈ DESCRIPTION πΈ
ngl this one is kind of iconic. Run xfs_ncheck with no -i arguments and it spits out a list of every inode number and pathname on the filesystem β¨ Anything that's a directory gets a /.. tacked on the end, so you can tell which names are folders π The output is not sorted in any particular order, so don't expect neat alphabetical vibes π
You point it at the filesystem with the device argument, and that should be the disk or volume device the filesystem lives on π Filesystems that are just sitting inside regular files can get checked too, using the -f flag. It's giving flexibility π§
π OPTIONS π
-fβ this one tellsxfs_ncheckthat the filesystem image is stored in a regular file at device, instead of on a real disk. This can happen if you made an image copy of a filesystem into an ordinary file. (See themkfs.xfs -d fileoption.) π-l logdevβ tells it where the filesystem's external log lives πͺ΅ This only matters for filesystems that actually use an external log. Check out themkfs.xfs -loption, and readxfs(5)if you want the full tea on the XFS log π-sβ limits the report to special files and files with setuserid mode. Super useful for spotting security policy violations π₯-i inoβ limits the report to only the files whose inode numbers follow. You can give it multiple times to pick out several inode numbers at once π¦-Vβ prints the version number and exits. Quick and iconic β
π CAVEATS π
π Heads up, bestie: if the filesystem is seriously corrupted, or it's super busy and looks corrupt even when it isn't, you might see a message like the one the xfs_db(8) "check" command generates. Don't panic, just know what you're looking at π
Also, xfs_ncheck is only useful with XFS filesystems. It's not gonna do anything nice for other filesystem types π«Ά
π§ SEE ALSO π§
That's a wrap on xfs_ncheck(8) from the System Manager's Manual π Go forth and slay your inode hunts, periodt πβ¨π
π¦ where this page comes from
- alpine 3.22: xfsprogs-doc 6.14.0-r0 Β· LGPL-2.1-or-later
- alpine 3.23: xfsprogs-doc 6.17.0-r0 Β· LGPL-2.1-or-later
- alpine 3.24: xfsprogs-doc 7.0.1-r0 Β· LGPL-2.1-or-later
- arch rolling: xfsprogs 7.2.0-1
- arch rolling: xfsprogs 7.2.1-1 Β· GPL-2.0-only AND LGPL-2.1-only
- centos-stream 10: xfsprogs 6.16.0-1.el10 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- centos-stream 9: xfsprogs 6.4.0-9.el9 Β· GPL+ and LGPLv2+
- centos-stream 9: xfsprogs 6.4.0-9.el9 Β· GPL+ and LGPLv2+
- debian bookworm: xfsprogs 6.1.0-1 Β· GPL-2.0-only
- debian trixie: xfsprogs 6.13.0-2+deb13u1 Β· GPL-2.0-only
- fedora 43: xfsprogs 6.15.0-3.fc43 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 43: xfsprogs 6.15.0-3.fc43 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 6.18.0-2.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 6.18.0-2.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 7.1.1-1.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- fedora 44: xfsprogs 7.1.1-1.fc44 Β· GPL-1.0-or-later AND LGPL-2.1-or-later
- nixos 26.05: xfsprogs 6.19.0
- nixpkgs unstable: xfsprogs 7.2.1
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- opensuse-leap 16.0: xfsprogs 6.19.0-160000.3.1 Β· GPL-2.0-or-later
- ubuntu jammy: xfsprogs 5.13.0-1ubuntu2 Β· GPL-2.0-only
- ubuntu jammy: xfsprogs 5.13.0-1ubuntu2.1 Β· GPL-2.0-only
- ubuntu noble: xfsprogs 6.6.0-1ubuntu2 Β· GPL-2.0-only
- ubuntu noble: xfsprogs 6.6.0-1ubuntu2.1 Β· GPL-2.0-only
- ubuntu questing: xfsprogs 6.13.0-2ubuntu2 Β· GPL-2.0-only
- ubuntu resolute: xfsprogs 6.18.0-3 Β· GPL-2.0-only
- ubuntu stonking: xfsprogs 6.19.0-1 Β· GPL-2.0-only
- π girlified by anthropic/claude-haiku-5.5 on : a language model's rewrite of the original, under its terms