xfs_irecover(8)
π Name π
okay so bestie, this is the xfs_irecover(8) manual page from the hxtools collection, and it does exactly what it says on the tin: recover deleted inodes from XFS filesystems. No cap. π
β¨ Syntax β¨
xfs_irecover [-n] [-N max_inodes] [-r start_inode] [-s size_cutoff] [-t size_threshold] -D device -o output_dir
π¦ Description π¦
xfs_irecover scans the given block device for XFS inodes and extracts them. The way most filesystems work, they donβt zero the actual data β they just mark it unused after itβs been deleted, which means recovery is usually possible while the data hasnβt been overwritten. A whole set of heuristics, controllable via options, decides which inodes are considered to contain nonsensical data and ignores those. Itβs giving forensic main character energy, honestly. π₯
π Options π
-Ddevice β the block device or other plain file to scan. Pipes and sockets are not supported, becausexfs_irecovermakes use of seeking. So no pipeline shenanigans here, bestie. π«Ά-Nmax_inodes β sets the maximum number of inodes to scan. This is generally used for debug. The default is the amount of inodes thatxfs_dbreports for the filesystem.-nβ dry run. Do not write any extracted inodes to the target directory.-rstart_inode β specifies at which inodexfs_recovershall start. This is generally used for debug, or to restart a previously abortedxfs_irecover. The default is0(start of device).-ssize_cutoff β inodes that have a recorded file size above this limit are considered to have been overwritten in some way already, and will be ignored during extraction. The default is1 GB.-tsize_threshold β it can occur that an inode has a recorded file size that is smaller than the size of the extent blocks. If the recorded size is smaller than size_threshold, all extents will be extracted and the file not be truncated to the recorded size. (This heuristic is for when the recorded file size is believed to have been trashed.) Good values are in the range of4096-65536. The default is0, meaning files will always be truncated to the recorded size.
πΈ Caveats πΈ
β οΈ Real talk: xfs_irecover currently extracts inodes only, so filenames will not be extracted. In-use bitmaps are ignored (they most likely are trashed or already cleaned), as this tool searches for the real lost or cleared inodes β even the intentionally deleted ones way before a recovery was needed. Itβs not a magic undo button for names, okay? π
π See also π
hxtools(7)β go read that too, bestie.
and thatβs the whole page, periodt. this little icon is from hxtools, dated 2008-12-29, and itβs literally the xfs_irecover(8) manual. mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: hxtools-man 20231224-bp160.1.12 Β· GPL-2.0-or-later AND WTFPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms