# trying to find out what file is located at offset 

**URL:** <https://sleuthkit.discourse.group/t/trying-to-find-out-what-file-is-located-at-offset/3013>\
**Category:** The Sleuth Kit Help\
**Created:** [December 28, 2021, 2:00pm UTC](https://sleuthkit.discourse.group/t/trying-to-find-out-what-file-is-located-at-offset/3013 "2021-12-28T14:00:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![df925](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@df925](https://sleuthkit.discourse.group/u/df925)\
**Post date:** [December 28, 2021, 2:00pm UTC](https://sleuthkit.discourse.group/t/trying-to-find-out-what-file-is-located-at-offset/3013/1 "2021-12-28T14:00:48Z")

</div>

I used ddrescue to backup a Windows HDD, and there were errors

```auto
# Mapfile. Created by GNU ddrescue version 1.25
# Command line: ddrescue -f -r3 /dev/sda /dev/sdg mapfile
# Start time: 2021-11-30 12:02:21
# Current time: 2021-11-30 14:40:08
# Finished
# current_pos current_status current_pass
0xA39DA3FE00 + 3
# pos size status
0x00000000 0xA39D7A8000 +
0xA39D7A8000 0x00001000 -
0xA39D7A9000 0x0014A000 +
0xA39D8F3000 0x00001000 -
0xA39D8F4000 0x0014B000 +
0xA39DA3F000 0x00001000 -
0xA39DA40000 0x4543376000 +

```

fdisk -l /dev/sda

```auto
The backup GPT table is not on the end of the device.
Disk /dev/sda: 1.82 TiB, 2000398933504 bytes, 3907029167 sectors
Disk model: BUP Ultra Touch 
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 8BB1F33B-CBFA-4A6D-AF91-B4EABE93FF50

Device Start End Sectors Size Type
/dev/sda1 2048 1026047 1024000 500M EFI System
/dev/sda2 1026048 1288191 262144 128M Microsoft reserved
/dev/sda3 1288192 1925378047 1924089856 917.5G Microsoft basic data
/dev/sda4 1925378048 1927122943 1744896 852M Windows recovery environment
/dev/sda5 1927122944 1953523711 26400768 12.6G Windows recovery environment

```

how can I get a list of all files to determine what files are impacted at the offsets in my mapfile?

I tried to use mmls and icat to get a list of all the files. but icat -i 1288192 /dev/sda 0 \> mft.raw fails with

```auto
Unsupported image type: 1288192

```

I’m so confused with the Basic data partition. Any help please?

FYI I also tried to use ddru\_ntfsfindbad -i (1288192\*512) but that failed as well.

I dont understand the relationship between Basic data partition and NTFS

Thanks  
DF

---

<div class="post-metadata">

**Author:** ![atdt0](https://yyz2.discourse-cdn.com/free1/user_avatar/sleuthkit.discourse.group/atdt0/32/202_2.png) [@atdt0](https://sleuthkit.discourse.group/u/atdt0)\
**Post date:** [December 29, 2021, 8:52pm UTC](https://sleuthkit.discourse.group/t/trying-to-find-out-what-file-is-located-at-offset/3013/2 "2021-12-29T20:52:34Z")

</div>

Hello. Both fdisk and mmls will show you your partition structure but what you are looking for is something like fls to show the files and directories that are within each partition. In your case, start with something like ‘fls -o 1288192 -r /dev/sda | less’ to recursively show the files and directories in /dev/sda3. After that you can use ‘icat’ + the offset to extract the individual files based on their MFT entry number.

Also, if you wanted to extract just the MFT you could use something like ‘icat -o 1288192 /dev/sda 0 \> mft’ and then feed the MFT into a parser.

Hope that helps get you started!

---

<div class="post-metadata">

**Author:** ![df925](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@df925](https://sleuthkit.discourse.group/u/df925)\
**Post date:** [December 31, 2021, 4:27pm UTC](https://sleuthkit.discourse.group/t/trying-to-find-out-what-file-is-located-at-offset/3013/3 "2021-12-31T16:27:31Z")

</div>

Thank you,

I’m so dumb, I used icat -i instead of icat -o

Got info from [filesystem - Create a copy of MFT using DD and convert to CSV? - Ask Ubuntu](https://askubuntu.com/questions/1097368/create-a-copy-of-mft-using-dd-and-convert-to-csv)

Testing the rest now.

Also for anyone else trying, analyzeMFT.py requires Python 2
