How do you read the 128-bit NTFS FILE_ID for a directory and/or file?

后端 未结 2 1571
温柔的废话
温柔的废话 2021-01-01 00:02

So NTFS uses a 128-bit Guid to identify files and directories, you can view this information easily enough:

C:\\Temp>C:\\Windows\\System32\\fsutil.exe objectid qu         


        
2条回答
  •  别那么骄傲
    2021-01-01 00:30

    Also please note that NOT every file does have a GUID. The GUID mechanisim is mostly used for .lnk files in order to keep the association when a the traget is moved. Only $Volume and the targets of link files have these GUIDs. Furthermore you can set them by hand.

    Their advantage is that the GUID should not clash between volumes, while the file ID does. the FILE_ID is actually 48 bit of MFT_RECORD_NUMBER and 16 bits of MFT_SEQUENCE_ID

提交回复
热议问题