• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 792
  • Last Modified:

Where is the MFT for NTFS?

I want to know where is the MFT file for my drive(s). I know that there are free HEX editor that can open the MFT. But I am just wondering where it is and if you can programmatically read it in .net(C#/VB) or JAVA

Thanks in advance!
0
roychan0328
Asked:
roychan0328
  • 2
  • 2
1 Solution
 
jkrCommented:
You'll find a lot of useful information at http://www.ntfs.com/ - and http://www.codeproject.com/KB/files/NTFSUndelete.aspx ("Undelete a file in NTFS") has some sample code on how to handle the MFT and it's entries.
0
 
roychan0328Author Commented:
Thanks for the quick response. I have read both links. What I am trying to do is to read the $mft programatically.

It seems to me that C# can't really do it. you have to use C/C++, if you use C#, I think you have to use P/Invoke. which I believe the overhead is high...(from what I read on the net so far)

So... is there a way to read $mft directly from C# or Java?


0
 
jkrCommented:
Well, either way you'd have to call Win32 APIs, so we're back at P/Invoke...
0
 
roychan0328Author Commented:
super responsive!
0
 
abelCommented:
Unfortunately, this thread is already closed.  Jkr was right about the Win32 APIs, but it is not really hard to do.. and as with many things, if somebody else has already done it..... For the sake of the archive and for anybody interested, here's a solution: check this post on the social MSDN forum for how to do it.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now