Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I wish the tool could dump all NTFS metadata #14

Closed
Ark-kun opened this issue Mar 20, 2022 · 1 comment
Closed

I wish the tool could dump all NTFS metadata #14

Ark-kun opened this issue Mar 20, 2022 · 1 comment
Assignees
Labels
question Further information is requested

Comments

@Ark-kun
Copy link

Ark-kun commented Mar 20, 2022

Here was the situation when I discovered this tool:

My HDD stopped being recognized by Windows (shown as Raw). But the problem seems to be very minor. All files are still there. The HDD tools can easily show them. I want to run chkdsk to fix the filesystem, but there is a risk that it will mess up everything. I'm pretty sure it won't mess up the file contents. But it could mess up $MFT. So, I wanted to back up the whole filesystem table ($MFT and FILE records). This way I could recover the table or the files (knowing their sectors). It would be also great to compare the table before and after the repair.

I've since fixed my problem, but just wanted to leave my use case here.

@thewhiteninja
Copy link
Owner

You can backup the $MFT table (with the records) (extract) but restoring only the $MFT will probably (I would say at 99%) break the filesystem as the $MFT is closely linked to the file data.
If chkdsk modify the $MFT and some data (ex: move a file), if you restore the old $MFT, you will lost some data.

The only and the best solution is to backup the whole disk/partition and, if chkdsk messed up the filesystem, restore it.

The ntfstool is not made for backup/restore. But you can backup a drive or volume using the image command and restore using tools that support raw/dd image like Rufus

Comparing two $MFTs is not easy as the differences can be anywhere, but it's might be possible using a Hex Editor and some time :)

@thewhiteninja thewhiteninja self-assigned this Mar 22, 2022
@thewhiteninja thewhiteninja added the question Further information is requested label Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants