Page 1 of 1

There is still no important function NTFS FILE ID + Directory NTFS File ID

Posted: Wed Dec 27, 2017 2:37 pm
by Debugger
I asked many years ago for additional information about:

Code: Select all

NTFS File ID
Directory NTFS File ID

It still does not have this important function.
I tested outdated versions from Microsoft, but it does not work with Unicode and does not save full paths. Although it saves a lot of information very quickly.
Can this be implemented in the Everything tool?


Example:
Q:\Небесном Египте Яко\IMG_001.JPG
Ntfs File ID:2773915
Directory NTFS File ID:2755065

Image

Application of this function:
Quickly finding a problem file detected by CHKDSK and quick recovery of a file or files without having to make a full backup, eg if the disk contains too much data.
If the file is valid, you can copy the file to another partition and then delete it from the original location. Fast, easy.

Re: There is still no important function NTFS FILE ID

Posted: Wed Dec 27, 2017 6:36 pm
by NotNull
Don't know if I understood correctly, but the function you mention is already implemented in Everything. Are you on an older version?

Let's say the problematic file is "C:\WINDOWS\System32\chkdsk.exe" (that would be really ironic ;-) )

On my system, it's File ID is 0x00000000000000000006000000051309
You can find the File ID by issuing this command:

Code: Select all

fsutil file queryfileid c:\WINDOWS\System32\chkdsk.exe


Now, in the Everything search bar, type this query:

Code: Select all

C: frn:0x00000000000000000006000000051309

And you get the matching filename (including complete path).
You need to include the driveletter, because it is very well possible that a file on D: (or any other local disk) has the same FileID.


Another simple way to find the filename:

Code: Select all

fsutil file queryfilenamebyid C:\ 0x00000000000000000006000000051309

Re: There is still no important function NTFS FILE ID

Posted: Thu Dec 28, 2017 10:50 am
by Debugger
CHKDSK only shows simple file id

Everything even in the latest version does not have such a feature.
Pointless.
0x00000000000000000006000000051309
This is not a real simple ID (only number)
Give a very bad and not practical solution.. Your suggestion is useless. How do I automatically save a million folder names, subfolders, millions PATHs, or ID filenames?


Image

Image

Re: There is still no important function NTFS FILE ID

Posted: Thu Dec 28, 2017 12:58 pm
by NotNull
Debugger wrote:Pointless

very bad

not practical

useless


Well, that was the last time I ever tried to help you (and yes, I do have a solution).
Man, are you unfriendly and grumpy ....

Re: There is still no important function NTFS FILE ID + Directory NTFS File ID

Posted: Thu Dec 28, 2017 2:39 pm
by Debugger
That's my personality nature, what can you do :?
If I have only the file ID (example: 190) or directory file id (example: 192), how should I know what file it is and what is the path?

Re: There is still no important function NTFS FILE ID + Directory NTFS File ID

Posted: Thu Dec 28, 2017 7:31 pm
by Stamimail
Debugger wrote:That's my personality nature, what can you do :?

I know many people that have changed their "personality nature".
Maybe here is not the place to talk about it, but you need to know that it's changeable.

Re: There is still no important function NTFS FILE ID + Directory NTFS File ID

Posted: Fri Dec 29, 2017 9:18 pm
by void
Everything does not index "file index" (FRN) information.

However, there is a frn: search command which will search for files with the matching FRN on all NTFS and ReFS volumes.
It is not the fastest, as Everything will need to lookup the filename from the FRN.

For example, search for:
frn:0x00000000000000000006000000051309

You can use decimal or hexadecimal (prefix with 0x) FRN values.

Everything does not display FRN information in the result list yet, this will be available in Everything 1.5.

Re: There is still no important function NTFS FILE ID + Directory NTFS File ID

Posted: Fri Dec 29, 2017 11:16 pm
by NotNull
@void: Windows uses next to the FRN (also called File ID) another ID to address a file. Confusingly, this is sometimes called File ID, too.
(as poster was talking about File ID's, I was assuming the FRN)

The " short ID" is the ID that CHKDSK reports.
This second ID is a shorter number. You can get the FRN from that, but that's hard.
The other way around is a little simpler: strip the higher bits, which leaves you with 0x51309 (or 332553 decimal) for my CHKDSK.exe.

2017-12-30 00_24_00-Microsoft Edge.png

( ID2FILE is something I wrote. It accepts "Short ID's" as well as FRN's as parameter)

The usage of the "short ID" is very uncommon.