Is it possible to find all files with a given inode? Efficiently?

9,061

Solution 1

hey there is a similar question on SO, maybe that will help.

https://stackoverflow.com/questions/1340263/what-is-the-fastest-way-to-find-all-the-file-with-the-same-inode

Solution 2

debugfs -R "ncheck your_inode_num" /dev/sda
Share:
9,061

Related videos on Youtube

Charles Stewart
Author by

Charles Stewart

Freelance copy-editor. You can read my irregular waffles at advogato.org/person/chalst/.

Updated on September 17, 2022

Comments

  • Charles Stewart
    Charles Stewart over 1 year

    It is possible to find all the paths to a file with a given inode, in general, using find's -inum option. But this has awful performance for typical filesystems. What options are there to improve performance?

    Are there filesystems with special support for this task? Are there updatedb-like utilities that index inodes?

    The more general, the better the answer.

    Postscript For more on requirements, see What's a good solution for file-tagging in linux?

  • Cholthi Paul Ttiopic
    Cholthi Paul Ttiopic almost 6 years
    While link only answers may answer the question asked, it is better to include the important parts in the answer along side the link. Link-only answers tend to be prone to link decaying.