Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 http://superuser.com/questions/81563/whats-a-good-solution-for-file-tagging-in-linux/97245#97245

share|improve this question
up vote 3 down vote accepted

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

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

share|improve this answer
debugfs -R "ncheck your_inode_num" /dev/sda
share|improve this answer
1  
Do you know how debugfs builds up its map of inodes to paths? (From what little I know about ext2fs, the inode table only tells you about the blocks used by and permissions/types of the inodes.) Is it possible to use debugfs with a mounted partition? – Charles Stewart Jun 24 '13 at 10:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .