Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Are there any tools/utilities that can enumerate all the sectors on which a given file is stored?

share|improve this question
2  
For what purpose? –  Kevin Panko Dec 10 '13 at 21:41
    
file recovery [satisfy char minimum] –  eeeeeee Dec 11 '13 at 19:06
add comment

1 Answer 1

up vote 1 down vote accepted

ntfscluster which is part of the ntfs-3g package on Linux systems can do something like this. For example:

$ sudo ntfscluster -F WINDOWS/twunk_32.exe /dev/sdb1
Dump: /WINDOWS/twunk_32.exe
    0x10 - resident
    0x30 - resident
    0x80 - non-resident
             VCN     LCN     Length
               0  1144261        7

LCN stands for "logical cluster number" which you'll have to convert to sectors or byte offsets using the "bytes per cluster" number that's output by ntfscluster -i $DEVICE.

share|improve this answer
    
Thank you, friend. This meets my needs. –  eeeeeee Dec 10 '13 at 23:49
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.