There are similar questions for Windows and Linux, but I need this on OS X. The filesystem is HFS+, journaled. I have a sector LBA, I could find where a partition starts with
gpt (though it refuses to work for mounted volumes), but I need something to map a sectors number within an HFS+ volume to the file that contains it.
Edit: I copied the sectors around that area from
dd, and the contents appear to be parts of the directory structure of the volume. The strange thing is that these were supposed to be damaged sectors, yet they can be read without problems, and
Reallocated_Event_Count = 0 and
Current_Pending_Sector = 0, so they shouldn't have been reallocated...