ReclaiMe’s Research – Determining Timestamps On BTRFS

ReclaiMe Data Recovery Company announces that they have completed the research devoted to determining the reliability and accuracy of various file metadata like creation, modification, and access timestamps in modern filesystems using copy-on-write (CoW).Old filesystems like NTFS, FAT, and EXT, which do not use copy-on-write, have one single instance of the file metadata. All file metadata is not necessarily stored in one place, but there is no more than one copy of each metadata piece on a disk. When deleting a file, a filesystem does not actually erase the metadata. Instead, it just marks the space previously allocated to the file and its metadata as free for reuse. Previous metadata thus remains intact until the next write, which happens to use the same space.

During normal operation on these filesystems (FAT/NTFS/EXT), there is only one place where metadata of a particular file is stored. There are few exceptions when more than one copy of metadata can exist:

• Journal on NTFS or EXT. Metadata copy gets into a journal for a short time resulting in the existence of two copies of metadata for a that (short) period of time.
• Defragmentation may create the copies of metadata. When the defragmenter moves metadata to a more optimal location, old copies are not zeroed and therefore can exist long enough to be discovered, until their space is used for a new write operation.

Generally, non-CoW filesystems store a single copy of file metadata; even journaling and defragmentation cannot produce many copies.

As for filesystems using copy-on-write, the situation with file metadata was not that clear because copy-on-write implies that every file modification generates a new copy of file metadata. In the current research, a file was created and modified on BTRFS, modern filesystem using in NETGEAR NASes. Once all the changes were written to the disk, search for the metadata revealed that there are at least four old, not yet reused, metadata blocks, and two groups of new blocks, which give different timestamps. From all this variety of metadata blocks, the filesystem driver finds a metadata block with correct timestamp by traversing filesystem trees. If a filesystem fails or the file is deleted, some metadata blocks can be destroyed or become unreachable because pointers to these blocks are damaged. Data recovery tools have to sort all the different metadata and generally, timestamps cannot be determined reliably. Taking the latest timestamps is a good assumption but in general case it is not possible to prove that a block with the latest timestamp was not destroyed during the data loss event.


Get The Latest DFIR News!

Join the Forensic Focus newsletter for the best DFIR articles in your inbox every month.


Unsubscribe any time. We respect your privacy - read our privacy policy.

The research formed the basis of their latest data recovery lesson available at www.data.recovery.training. This also includes the detailed description of the experiment and the corresponding disk image files, using which you can repeat the experiment.

Leave a Comment

Latest Videos

Magnet Forensics' Matt Suiche on the Rise of e-Crime and Info Stealers

Forensic Focus 12th January 2023 3:00 am

Just like your current holiday shopping for last minute presents a lot of the good stuff has gone off the shelves already. You reach to the back and find the toy nobody really wanted but it’s the thought that counts, you stare down at Si and Desi’s Holiday Special 2022 podcast. 

Please join these two as they lament over the year that was, discuss all the things they didn’t do but promise they will do them next year, query whether putting a NAS in the storage of a roller door is a good idea, and finally arrive at what they’re looking forward to bringing you in the new year.

Show Notes:

Arduino PLC IDE - https://docs.arduino.cc/software/plc-ide
Mycroft Mark II (open source Alexa) - https://www.kickstarter.com/projects/aiforeveryone/mycroft-mark-ii-the-open-voice-assistant
Christa’s new blog - https://christammiller.com/
Si’s holiday reading - https://amzn.to/3iJyGrR
Desi’s holiday reading -  https://inteltechniques.com/
Strange event for the end of the year - https://www.reuters.com/world/europe/25-suspected-members-german-far-right-group-arrested-raids-prosecutors-office-2022-12-07/
Si’s wishful thinking - https://www.youtube.com/watch?v=GXnRgXclLd0
Si’s list to do before the EOY - https://intrepidcamera.co.uk/products/intrepid-4x5-camera
Desi’s list to do before EOY - https://www.wired.com/story/how-to-reset-your-phone-before-you-sell-it/
“Cleaning your office” - https://www.manfrotto.com/uk-en/vintage-collapsible-1-5-x-2-1m-ink-sage-ll-lb5720/
Conference recorder - https://amzn.to/3UBmre5
Desi’s blog - https://www.hardlyadequate.com/

Just like your current holiday shopping for last minute presents a lot of the good stuff has gone off the shelves already. You reach to the back and find the toy nobody really wanted but it’s the thought that counts, you stare down at Si and Desi’s Holiday Special 2022 podcast.

Please join these two as they lament over the year that was, discuss all the things they didn’t do but promise they will do them next year, query whether putting a NAS in the storage of a roller door is a good idea, and finally arrive at what they’re looking forward to bringing you in the new year.

Show Notes:

Arduino PLC IDE - https://docs.arduino.cc/software/plc-ide
Mycroft Mark II (open source Alexa) - https://www.kickstarter.com/projects/aiforeveryone/mycroft-mark-ii-the-open-voice-assistant
Christa’s new blog - https://christammiller.com/
Si’s holiday reading - https://amzn.to/3iJyGrR
Desi’s holiday reading - https://inteltechniques.com/
Strange event for the end of the year - https://www.reuters.com/world/europe/25-suspected-members-german-far-right-group-arrested-raids-prosecutors-office-2022-12-07/
Si’s wishful thinking - https://www.youtube.com/watch?v=GXnRgXclLd0
Si’s list to do before the EOY - https://intrepidcamera.co.uk/products/intrepid-4x5-camera
Desi’s list to do before EOY - https://www.wired.com/story/how-to-reset-your-phone-before-you-sell-it/
“Cleaning your office” - https://www.manfrotto.com/uk-en/vintage-collapsible-1-5-x-2-1m-ink-sage-ll-lb5720/
Conference recorder - https://amzn.to/3UBmre5
Desi’s blog - https://www.hardlyadequate.com/

YouTube Video UCQajlJPesqmyWJDN52AZI4Q_BhrBg5_sAKo

Si and Desi Holiday Special 2022

Forensic Focus 16th December 2022 12:00 am

This error message is only visible to WordPress admins

Important: No API Key Entered.

Many features are not available without adding an API Key. Please go to the YouTube Feed settings page to add an API key after following these instructions.

Latest Articles

Share to...