Question Locked

NTFS and FAT32 metadata

0 helpful
18 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello

1.
File system metadata refers to the times recorded by the operating system when a file is modified, accessed, or created.
Filesystem metadata is stored in the FAT in both NTFS and FAT32.
Filesystem metadata is not stored with the filedata.
File metadata (for example BMP-file: (1) The file header contains: metadata), is part of the file and is stored with the file.
Correct?

2.
Another question:
How many timestamps in filesystem metadata, for each of "Created" "Modifed" "Accessed" does a filesystem store?
Only 1, and it just get overwritten by the filesystem?

Thank you

18 replies

by kees_b

1a.
https://learn.microsoft.com/en-us/windows-server/storage/file-server/ntfs-overview tells about NTFS metadata. I leave it to you to find the documentation about FAT32-metadata.
1b. In principle correct. However, the alternative datastreams of an NTFS file, although they are included in the size of the file aren't copied if you copy to an FAT-filesystem on a USB-stick.

2. Certainly only 1 for created. And Explorer shows only 1 for modified and accessed. It's quite unlikely they store different last-accessed-timestamps, although they might be in some log files used by Windows.

by Oblivion99

However, the alternative datastreams of an NTFS file, although they are included in the size of the file aren’t copied if you copy to an FAT-filesystem on a USB-stick.
-
Alternative datastreams?
Can you elaborate?
In other words, its best to copy from and to same filesystem - for example NTFS to NTFS

It’s quite unlikely they store different last-accessed-timestamps, although they might be in some log files used by Windows.
-
So its unlikely, that (FAT32 → FAT/dir entries, NTFS → MFT) store more than 1 of each type of timestamp?

by lizeth.botsford1

Hi @Oblivion99,

Correct: filesystem metadata (timestamps, permissions, etc.) is stored by the FS (FAT32 → FAT/dir entries, NTFS → MFT), not with file data. File metadata (like a BMP header) is stored inside the file itself.

FAT32 → 3 timestamps (Created, Modified, Accessed).
NTFS → 4 (Created, Modified, Accessed, MFT/Entry Modified). Each field holds one value, overwritten on update (though NTFS journaling may keep history).

by Oblivion99

Does NTFS have 4 timestamps?
The 4th is MFT/Entry Modified?
Where can I see that?

NTFS journaling, is that part of the MFT?

Does NTFS journaling follow the file, for example if I copy the file to another NTFS drive?

by kees_b

A log record in the journal surely references a file.
The timestamp is part of the MFT data of the file.

by Oblivion99

You seem very knowledgeable regarding this topic

Do you have more to add or corrections to the answers in the thread?

Thank you

by Oblivion99

Regarding journaling:

NTFS journaling is a feature of the New Technology File System (NTFS) that ensures file system integrity by recording metadata changes in a transaction log before they are actually made.
-
No, NTFS journaling is not part of the Master File Table (MFT); rather, it is a separate, but related,
-
So I can conclude, that the NTFS journaling will not follow the file:
If the file is copied on the same drive?
If the file is copied to another drive?

Regarding NTFS MFT entry modified:

An NTFS "MFT Entry Modified" (or $Mft Modified) timestamp changes whenever the actual Master File Table (MFT) record for a file or directory is altered. This happens during operations like creating, deleting, renaming, moving, copying, or making any change to the file's content or metadata, such as altering its size.

Does NTFS MFT entry modified timestamp follow the file:
If the file is copied on the same drive?
If the file is copied to another drive?

by kees_b edited

Please explain what you mean with "follow the file". I expect it to be different for the two questions. "Following" journalling seems something else than "following" a timestamp.

by Oblivion99

Is the NTFS journaling information / data, that is linked / attached to a file?

The NTFS MFT Entry Modified timestamp is information / data, that is linked / attached to the file?

If the file is copied, does the new copy of the file have the NTFS MFT Entry Modified timestamp information / data?
This answers itself, because this timestamp is updated / changed due to the file being copied.

by Oblivion99

The NTFS journaling which consist of $LogFile and $UsnJrnl, they log past file system activity.

If we have file A, there will be some NTFS journaling data linked to file A.

What if we copy file A = new file = File B

Is the NTFS journaling data linked to file A also copied?

Or does File B have new and different NTFS file journaling data?

by Oblivion99

Which timestamp are you referencing to here?
The normal metadata timestamp ind properties, or the NTFS MFT Entry Modified timestamp?

by kees_b edited

I meant the timestamp you mentioned in the post I replied to.

by Oblivion99

1.
Is the NTFS journaling data linked to file A also copied?

2.
Or does File B have new and different NTFS file journaling data?

I believe its 2. But that is more guess than an educated answer.

by kees_b edited

It's a somewhat confusing thread indeed. But my reply #4332561 was meant as a reply to your post #4330861 above, which mentions only one of the two.

This discussion is closed to new replies.