Suppose, I save a file on my hard disc drive(for example c:\abc.txt) that system file of my drive is in system file FAT32 or NTFS, I want to find physical address of this file for example sector number XXXXX to sector number yyyyy. please help me.
Asked
Active
Viewed 2,188 times
1
-
3You do realize that there might be many ranges if the file is fragmented? – Mysticial Mar 02 '12 at 08:20
-
yes, in these case I suppose all ranges are countinues – Ehsan Mar 02 '12 at 08:21
-
FAT or NTFS? In each case how to get the physical address is different. – m0skit0 Mar 02 '12 at 08:23
-
If the file is fragmented I want to retrieve an array of sectors that save my file binaries – Ehsan Mar 02 '12 at 08:23
-
-1 for "I want you to write a program for me" attitude – Gunther Piez Mar 02 '12 at 09:12
-
NO, NO, NO... I want to how to... which function I can use and which source I must to read – Ehsan Mar 02 '12 at 09:19
2 Answers
2
For FAT:
- http://en.wikipedia.org/wiki/File_Allocation_Table#Technical_design
- http://home.teleport.com/~brainy/fat32.htm
For NTFS:

m0skit0
- 25,268
- 11
- 79
- 127
-
Thanks, But I want a program that do it for me, I don't know assembly language – Ehsan Mar 02 '12 at 08:27
-
Sorry, but I'm not going to do your work for you (mainly because I gotta do mine first). And you don't need assembly. C should be plenty. If you do at least give it a try, we can help. – m0skit0 Mar 02 '12 at 08:38
2
The tool you are looking for is called "nfi.exe" which is (used to be) part of the "oem support tools".

mox
- 6,084
- 2
- 23
- 35