I know of this command:
find /path/to/mountpoint -inum <inode number>
but it is a very slow search, I feel like there has to be a faster way to do this. Does anybody know a faster method?
|
|
You could look at the fsdb command, found on most Unices, and available somewhere for Linux I am sure. This is a powerful command allowing you to to access the in-core inode structure of files, so be careful. The syntax is also very terse. While fsdb won't actually let you discover the filename of the inode, it does allow you to directly access the inode when you specify it, in essence "porting" you to the file itself (or at least it's data block pointers) so it's quicker in that respect than the find ;-). sc. |
|||
|
|
For an ext4 filesystem, you can use
The answer is not immediate, but seem to be better than |
|||
|