The only way I know is:
find /home -xdev -samefile file1
But it\'s really slow. I would like to find a tool like locate. The real
locate
What I'd typically do is: ls -i to get the inode of that file, and then find /dir -type f -inum -mount. (You want the -mount to avoid searching on different file systems, which is probably part of your performance issues.)
ls -i
find /dir -type f -inum -mount
-mount
Other than that, I think that's about it.