{"id":165,"date":"2024-12-29T20:33:30","date_gmt":"2024-12-29T20:33:30","guid":{"rendered":"https:\/\/hireaprohacker.com\/?p=165"},"modified":"2024-12-29T20:34:26","modified_gmt":"2024-12-29T20:34:26","slug":"%e6%81%a2%e5%a4%8d%e5%b7%b2%e5%88%a0%e9%99%a4%e6%96%87%e4%bb%b6%e7%9a%84-5-%e7%a7%8d%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/hireaprohacker.com\/zh\/5-ways-recover-your-deleted-files\/","title":{"rendered":"5 \u79cd\u6062\u590d\u5df2\u5220\u9664\u6587\u4ef6\u7684\u65b9\u6cd5 \uff01"},"content":{"rendered":"<h2><strong>How to Recover Your Deleted Files<\/strong><\/h2>\n<h1 id=\"43bf\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Introduction<\/strong><\/h1>\n<p id=\"247a\" class=\"pw-post-body-paragraph nt nu fq nv b go nw nx ny gr nz oa ob oc od oe of og oh oi oj ok ol om on oo fj bk\" data-selectable-paragraph=\"\">When a file is \u201cdeleted\u201d, its contents aren\u2019t typically erased from the storage device that it was stored on. More often than not, the blocks that stored the file are marked as unallocated and the filesystem pointers are removed from it. The implication is that the file still exists on the disk until it is overwritten. Recover Your Deleted Files<\/p>\n<p id=\"8526\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">There are many methods to recovering the raw, unallocated data.\u00a0<a class=\"af ou\" href=\"https:\/\/hireaprohacker.com\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">This website<\/a>\u00a0lists many tools that can be used for file recovery in different scenarios. In this article, I\u2019ll be walking through 5 different tools that can be used to recover data.<\/p>\n<h1 id=\"a1b3\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Setup<\/strong><\/h1>\n<p id=\"9456\" class=\"pw-post-body-paragraph nt nu fq nv b go nw nx ny gr nz oa ob oc od oe of og oh oi oj ok ol om on oo fj bk\" data-selectable-paragraph=\"\">I\u2019ll be using doing forensic analysis on a drive that I created and attached to my Kali Linux VM. To see how this is done, you can reference\u00a0<a class=\"af ou\" href=\"https:\/\/hireaprohacker.com\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">this article<\/a>. On this drive, I saved and then deleted an image file and text file. Recover Your Deleted Files<\/p>\n<p data-selectable-paragraph=\"\"><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:636\/0*aKWpafxj5-HfY9OI.png\" alt=\"\" width=\"636\" height=\"380\" \/><\/p>\n<p id=\"e40b\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">I\u2019ll start by doing general enumeration on the disk image. Then, I\u2019ll showcase a variety of file recovery techniques used by forensic analysts that allowed me to recover the deleted files. Many of the tools used will be from the\u00a0<a class=\"af ou\" href=\"http:\/\/sleuthkit.org\/sleuthkit\" target=\"_blank\" rel=\"noopener ugc nofollow\">Sleuth Kit<\/a>\u00a0(TSK).<\/p>\n<p id=\"57cd\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">Before starting, I\u2019ll unmount the filesystem, create a duplicate of it, remove write permissions from the duplicate, and verify the integrity of the duplicate against the original hash of\u00a0<code class=\"cx ow ox oy oz b\">\/dev\/sdb<\/code>. Recover Your Deleted Files<\/p>\n<pre class=\"mm mn mo mp mq pa oz pb bp pc bb bk\"><span id=\"f963\" class=\"pd my fq oz b bg pe pf l pg ph\" data-selectable-paragraph=\"\"><span class=\"hljs-meta.prompt\">$ <\/span><span class=\"hljs-undefined\"><span class=\"hljs-built_in\">cd<\/span> ..\/ &amp;&amp; umount \/mnt\/secret <span class=\"hljs-comment\"># unmount \/mnt\/secret<\/span><\/span><\/span><\/pre>\n<pre class=\"pi pa oz pj pk ay pl bk\"><span id=\"3d97\" class=\"pm my fq oz b hw pn po l im ph\" data-selectable-paragraph=\"\">$ dd if=\/dev\/sdb of=\/home\/kali\/forensics\/sdb.img # copy \/dev\/sdb into sdb.img\r\n22286+0 records in\r\n22286+0 records out\r\n11410432 bytes (11 MB, 11 MiB) copied, 0.0412053 s, 277 MB\/s<\/span><span id=\"a2ff\" class=\"pm my fq oz b hw pp po l im ph\" data-selectable-paragraph=\"\">$ chmod a-w \/home\/kali\/forensics\/sdb.img # remove write access to the image\r\n                                                                \r\n$ md5sum \/home\/kali\/forensics\/sdb.img \/dev\/sdb\r\n6c49fb21916d59e0df69453959392e23  \/home\/kali\/forensics\/sdb.img\r\n6c49fb21916d59e0df69453959392e23  \/dev\/sdb<\/span><\/pre>\n<h1 id=\"acdf\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Enumeration<\/strong><\/h1>\n<h1 id=\"ef35\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Image Analysis<\/strong><\/h1>\n<p id=\"6c97\" class=\"pw-post-body-paragraph nt nu fq nv b go nw nx ny gr nz oa ob oc od oe of og oh oi oj ok ol om on oo fj bk\" data-selectable-paragraph=\"\">Using the\u00a0<code class=\"cx ow ox oy oz b\">file<\/code>\u00a0command reveals that the image uses an ext4 file system.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk pq\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*vgBWpyzuqm9P7rHQ.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*vgBWpyzuqm9P7rHQ.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*vgBWpyzuqm9P7rHQ.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*vgBWpyzuqm9P7rHQ.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*vgBWpyzuqm9P7rHQ.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*vgBWpyzuqm9P7rHQ.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1262\/format:webp\/0*vgBWpyzuqm9P7rHQ.png 1262w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 631px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*vgBWpyzuqm9P7rHQ.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*vgBWpyzuqm9P7rHQ.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*vgBWpyzuqm9P7rHQ.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*vgBWpyzuqm9P7rHQ.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*vgBWpyzuqm9P7rHQ.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*vgBWpyzuqm9P7rHQ.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1262\/0*vgBWpyzuqm9P7rHQ.png 1262w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 631px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:631\/0*vgBWpyzuqm9P7rHQ.png\" alt=\"\" width=\"631\" height=\"75\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"c39d\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">Furthermore, the\u00a0<code class=\"cx ow ox oy oz b\">stat<\/code>\u00a0command displays information about the image such as its size, time stamps, and block details.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk pr\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*rtyBHm0zuM2FJULz.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*rtyBHm0zuM2FJULz.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*rtyBHm0zuM2FJULz.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*rtyBHm0zuM2FJULz.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*rtyBHm0zuM2FJULz.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*rtyBHm0zuM2FJULz.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1250\/format:webp\/0*rtyBHm0zuM2FJULz.png 1250w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 625px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*rtyBHm0zuM2FJULz.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*rtyBHm0zuM2FJULz.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*rtyBHm0zuM2FJULz.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*rtyBHm0zuM2FJULz.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*rtyBHm0zuM2FJULz.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*rtyBHm0zuM2FJULz.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1250\/0*rtyBHm0zuM2FJULz.png 1250w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 625px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:625\/0*rtyBHm0zuM2FJULz.png\" alt=\"\" width=\"625\" height=\"171\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"b887\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">With the information that the image uses ext4, the\u00a0<code class=\"cx ow ox oy oz b\">fsstat<\/code> command can be used to extract more detailed information about the file system, metadata, content data, and block groups. Recover Your Deleted Files<\/p>\n<pre class=\"mm mn mo mp mq pa oz pb bp pc bb bk\"><span id=\"d7b2\" class=\"pd my fq oz b bg pe pf l pg ph\" data-selectable-paragraph=\"\">$ fsstat -f ext4 sdb.img \r\n<span class=\"hljs-section\">FILE SYSTEM INFORMATION\r\n--------------------------------------------<\/span>\r\nFile System Type: Ext4\r\nVolume Name: \r\nVolume ID: dc8a4fb36dce8eabee4c51cf01c2d52a<\/span><\/pre>\n<pre class=\"pi pa oz pj pk ay pl bk\"><span id=\"90ee\" class=\"pm my fq oz b hw pn po l im ph\" data-selectable-paragraph=\"\">Last Written at: 2023-05-09 22:35:31 (EDT)\r\nLast Checked at: 2023-05-09 22:23:26 (EDT)<\/span><span id=\"3b51\" class=\"pm my fq oz b hw pp po l im ph\" data-selectable-paragraph=\"\">Last Mounted at: 2023-05-09 22:24:27 (EDT)\r\nUnmounted properly\r\nLast mounted on: \/mnt\/secret<\/span><span id=\"382f\" class=\"pm my fq oz b hw pp po l im ph\" data-selectable-paragraph=\"\">Source OS: Linux\r\nDynamic Structure\r\nCompat Features: Journal, Ext Attributes, Resize Inode, Dir Index\r\nInCompat Features: Filetype, Extents, 64bit, Flexible Block Groups, \r\nRead Only Compat Features: Sparse Super, Large File, Huge File, Extra Inode Size<\/span><span id=\"7a98\" class=\"pm my fq oz b hw pp po l im ph\" data-selectable-paragraph=\"\">Journal ID: 00\r\nJournal Inode: 8<\/span><span id=\"3330\" class=\"pm my fq oz b hw pp po l im ph\" data-selectable-paragraph=\"\">METADATA INFORMATION\r\n--------------------------------------------\r\nInode Range: 1 - 2785\r\nRoot Directory: 2\r\nFree Inodes: 2773\r\nInode Size: 256<\/span><span id=\"8e67\" class=\"pm my fq oz b hw pp po l im ph\" data-selectable-paragraph=\"\">CONTENT INFORMATION\r\n--------------------------------------------\r\nBlock Groups Per Flex Group: 16\r\nBlock Range: 0 - 11139\r\nBlock Size: 1024\r\nReserved Blocks Before Block Groups: 1\r\nFree Blocks: 9223<\/span><span id=\"47b3\" class=\"pm my fq oz b hw pp po l im ph\" data-selectable-paragraph=\"\">BLOCK GROUP INFORMATION\r\n--------------------------------------------\r\nNumber of Block Groups: 2\r\nInodes per group: 1392\r\nBlocks per group: 8192<\/span><span id=\"8b51\" class=\"pm my fq oz b hw pp po l im ph\" data-selectable-paragraph=\"\">Group: 0:\r\n  Block Group Flags: [INODE_ZEROED] \r\n  Inode Range: 1 - 1392\r\n  Block Range: 1 - 8192\r\n  Layout:\r\n    Super Block: 1 - 1\r\n    Group Descriptor Table: 2 - 2\r\n    Group Descriptor Growth Blocks: 3 - 89\r\n    Data bitmap: 90 - 90\r\n    Inode bitmap: 92 - 92\r\n    Inode Table: 94 - 441\r\n    Uninit Data Bitmaps: 92 - 105\r\n    Uninit Inode Bitmaps: 94 - 107\r\n    Uninit Inode Table: 790 - 5661\r\n    Data Blocks: 5690 - 8192\r\n  Free Inodes: 1381 (99%)\r\n  Free Blocks: 6365 (77%)\r\n  Total Directories: 2\r\n  Stored Checksum: 0x7DEB<\/span><span id=\"66c5\" class=\"pm my fq oz b hw pp po l im ph\" data-selectable-paragraph=\"\">Group: 1:\r\n  Block Group Flags: [INODE_UNINIT, INODE_ZEROED] \r\n  Inode Range: 1393 - 2784\r\n  Block Range: 8193 - 11139\r\n  Layout:\r\n    Super Block: 8193 - 8193\r\n    Group Descriptor Table: 8194 - 8194\r\n    Group Descriptor Growth Blocks: 8195 - 8281\r\n    Data bitmap: 91 - 91\r\n    Inode bitmap: 93 - 93\r\n    Inode Table: 442 - 789\r\n    Data Blocks: 8282 - 11139\r\n  Free Inodes: 1392 (100%)\r\n  Free Blocks: 2858 (96%)\r\n  Total Directories: 0\r\n  Stored Checksum: 0xDFA7<\/span><\/pre>\n<p id=\"7d22\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">Based on this output, it is clear that the block size is 1024 bits, there are 1113 total blocks, and there are 2785 inodes.<\/p>\n<p id=\"a0a5\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">In addition,\u00a0<code class=\"cx ow ox oy oz b\">parted<\/code>\u00a0can be used to find more information on the partition table, which can be useful when using scalpel.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk ps\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*vfIT7y98415i5cSg.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*vfIT7y98415i5cSg.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*vfIT7y98415i5cSg.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*vfIT7y98415i5cSg.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*vfIT7y98415i5cSg.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*vfIT7y98415i5cSg.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1154\/format:webp\/0*vfIT7y98415i5cSg.png 1154w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 577px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*vfIT7y98415i5cSg.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*vfIT7y98415i5cSg.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*vfIT7y98415i5cSg.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*vfIT7y98415i5cSg.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*vfIT7y98415i5cSg.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*vfIT7y98415i5cSg.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1154\/0*vfIT7y98415i5cSg.png 1154w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 577px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:577\/0*vfIT7y98415i5cSg.png\" alt=\"\" width=\"577\" height=\"349\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"b265\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">Finally, running\u00a0<code class=\"cx ow ox oy oz b\">strings<\/code>\u00a0on the image gives more insight as to what is in the filesystem. It appears that my\u00a0<code class=\"cx ow ox oy oz b\">secret.txt<\/code>\u00a0file with the contents\u00a0<code class=\"cx ow ox oy oz b\">Hello World<\/code>\u00a0is appearing from the\u00a0<code class=\"cx ow ox oy oz b\">strings<\/code> command in addition to a failed image download attempt. Recover Your Deleted Files<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"ms mt ed mu bh mv\" tabindex=\"0\" role=\"button\">\n<div class=\"mj mk pt\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*DL-ayjuL8XXHCyXf.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*DL-ayjuL8XXHCyXf.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*DL-ayjuL8XXHCyXf.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*DL-ayjuL8XXHCyXf.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*DL-ayjuL8XXHCyXf.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*DL-ayjuL8XXHCyXf.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/0*DL-ayjuL8XXHCyXf.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*DL-ayjuL8XXHCyXf.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*DL-ayjuL8XXHCyXf.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*DL-ayjuL8XXHCyXf.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*DL-ayjuL8XXHCyXf.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*DL-ayjuL8XXHCyXf.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*DL-ayjuL8XXHCyXf.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/0*DL-ayjuL8XXHCyXf.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/0*DL-ayjuL8XXHCyXf.png\" alt=\"\" width=\"700\" height=\"432\" \/><\/picture><\/div>\n<\/div>\n<\/figure>\n<p id=\"807d\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">In the command\u00a0<code class=\"cx ow ox oy oz b\">strings -a --radix=d sdb.img<\/code>,\u00a0<code class=\"cx ow ox oy oz b\">-a<\/code>\u00a0is an option to scan the entire file and\u00a0<code class=\"cx ow ox oy oz b\">--radix=d<\/code>\u00a0tells\u00a0<code class=\"cx ow ox oy oz b\">strings<\/code> to show the offset that the string was found at in base 10. Recover Your Deleted Files<\/p>\n<h1 id=\"51af\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Analyzing the Files<\/strong><\/h1>\n<p id=\"0a9c\" class=\"pw-post-body-paragraph nt nu fq nv b go nw nx ny gr nz oa ob oc od oe of og oh oi oj ok ol om on oo fj bk\" data-selectable-paragraph=\"\">This particular image does not have any files currently in it aside from deleted files, so there isn\u2019t much information to gain from mounting it and analyzing the files. In cases where it is desireable to do so, the following command can be used:<\/p>\n<pre class=\"mm mn mo mp mq pa oz pb bp pc bb bk\"><span id=\"0c9b\" class=\"pd my fq oz b bg pe pf l pg ph\" data-selectable-paragraph=\"\"><span class=\"hljs-variable\">$ <\/span>mount -o ro,loop,noexec,noatime sdb.img<\/span><\/pre>\n<p id=\"951a\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">Below, I\u2019ll explain what the options do:<\/p>\n<ul class=\"\">\n<li id=\"2315\" class=\"nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo pu pv pw bk\" data-selectable-paragraph=\"\"><code class=\"cx ow ox oy oz b\">-o<\/code>: sets the options for mounting\u00a0<code class=\"cx ow ox oy oz b\">sdb.img<\/code>.<\/li>\n<li id=\"9e54\" class=\"nt nu fq nv b go px nx ny gr py oa ob oc pz oe of og qa oi oj ok qb om on oo pu pv pw bk\" data-selectable-paragraph=\"\"><strong class=\"nv fr\">ro<\/strong>: an option to mount the file system as being read-only<\/li>\n<li id=\"1431\" class=\"nt nu fq nv b go px nx ny gr py oa ob oc pz oe of og qa oi oj ok qb om on oo pu pv pw bk\" data-selectable-paragraph=\"\"><strong class=\"nv fr\">loop<\/strong>: mount the file system on a loop device<\/li>\n<li id=\"abf9\" class=\"nt nu fq nv b go px nx ny gr py oa ob oc pz oe of og qa oi oj ok qb om on oo pu pv pw bk\" data-selectable-paragraph=\"\"><strong class=\"nv fr\">noexec<\/strong>: disallow execution<\/li>\n<li id=\"fbf8\" class=\"nt nu fq nv b go px nx ny gr py oa ob oc pz oe of og qa oi oj ok qb om on oo pu pv pw bk\" data-selectable-paragraph=\"\"><strong class=\"nv fr\">noatime<\/strong>: don\u2019t change the access time of the files<\/li>\n<\/ul>\n<p id=\"0c89\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">You can then continue to run\u00a0<code class=\"cx ow ox oy oz b\">file<\/code> on the files within the mounted loop device and save their md5 hashes to verify integrity. Recover Your Deleted Files<\/p>\n<h1 id=\"fdde\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Recovering the Files<\/strong><\/h1>\n<h1 id=\"1cab\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\">Method 1: Using\u00a0<a class=\"af ou\" href=\"http:\/\/sleuthkit.org\/sleuthkit\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">Sleuth Kit<\/a><\/h1>\n<p id=\"77d8\" class=\"pw-post-body-paragraph nt nu fq nv b go nw nx ny gr nz oa ob oc od oe of og oh oi oj ok ol om on oo fj bk\" data-selectable-paragraph=\"\">Often, if you have deleted files, they may be displayed with\u00a0<code class=\"cx ow ox oy oz b\">fls sdb.img<\/code>, enumerated with\u00a0<code class=\"cx ow ox oy oz b\">istat -o &lt;offset&gt; sdb.img &lt;inode_number&gt;<\/code>, and recovered with\u00a0<code class=\"cx ow ox oy oz b\">icat -o &lt;offset&gt; sdb.img &lt;inode_number&gt;<\/code>. An example of the latter 2 steps are shown in the screenshot below.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"ms mt ed mu bh mv\" tabindex=\"0\" role=\"button\">\n<div class=\"mj mk qc\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*Z4PiPpL36sxKROgV.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*Z4PiPpL36sxKROgV.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*Z4PiPpL36sxKROgV.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*Z4PiPpL36sxKROgV.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*Z4PiPpL36sxKROgV.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*Z4PiPpL36sxKROgV.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/0*Z4PiPpL36sxKROgV.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*Z4PiPpL36sxKROgV.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*Z4PiPpL36sxKROgV.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*Z4PiPpL36sxKROgV.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*Z4PiPpL36sxKROgV.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*Z4PiPpL36sxKROgV.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*Z4PiPpL36sxKROgV.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/0*Z4PiPpL36sxKROgV.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/0*Z4PiPpL36sxKROgV.png\" alt=\"\" width=\"700\" height=\"375\" \/><\/picture><\/div>\n<\/div>\n<\/figure>\n<p id=\"3890\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\"><a class=\"af ou\" href=\"https:\/\/www.therootuser.com\/wp-content\/uploads\/2017\/11\/Screenshot-2017-11-07-17.27.58.png\" target=\"_blank\" rel=\"noopener ugc nofollow\">https:\/\/www.therootuser.com\/wp-content\/uploads\/2017\/11\/Screenshot-2017-11-07-17.27.58.png<\/a><\/p>\n<p id=\"b59f\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">This does not appear to be the case for me, however. My deleted files are not appearing from the\u00a0<code class=\"cx ow ox oy oz b\">fls<\/code>\u00a0command. Instead, I see a variable called\u00a0<code class=\"cx ow ox oy oz b\">$OrphanFiles<\/code>. Recover Your Deleted Files<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk qd\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*TEi8-hQiTyjiF86v.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*TEi8-hQiTyjiF86v.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*TEi8-hQiTyjiF86v.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*TEi8-hQiTyjiF86v.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*TEi8-hQiTyjiF86v.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*TEi8-hQiTyjiF86v.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:652\/format:webp\/0*TEi8-hQiTyjiF86v.png 652w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 326px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*TEi8-hQiTyjiF86v.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*TEi8-hQiTyjiF86v.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*TEi8-hQiTyjiF86v.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*TEi8-hQiTyjiF86v.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*TEi8-hQiTyjiF86v.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*TEi8-hQiTyjiF86v.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:652\/0*TEi8-hQiTyjiF86v.png 652w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 326px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:326\/0*TEi8-hQiTyjiF86v.png\" alt=\"\" width=\"326\" height=\"73\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"0080\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\"><code class=\"cx ow ox oy oz b\">$OrphanFiles<\/code>\u00a0are files that still exist in the image, but are no longer able to be accessed from the root directory.\u00a0<code class=\"cx ow ox oy oz b\">$OrphanFiles<\/code>\u00a0is not an actual directory on the image, it is Sleuth Kit\u2019s virtual way to demonstrate that the file metadata still exists (<a class=\"af ou\" href=\"https:\/\/wiki.sleuthkit.org\/index.php?title=Orphan_Files\" target=\"_blank\" rel=\"noopener ugc nofollow\">read more<\/a>).<\/p>\n<p id=\"2b19\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">To recover these orphan files, I will attempt a few techniques starting with\u00a0<code class=\"cx ow ox oy oz b\">extundelete<\/code>. Recover Your Deleted Files<\/p>\n<h1 id=\"0391\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Method 2<\/strong>:\u00a0<a class=\"af ou\" href=\"https:\/\/extundelete.sourceforge.net\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">Extundelete<\/a><\/h1>\n<p id=\"ed8f\" class=\"pw-post-body-paragraph nt nu fq nv b go nw nx ny gr nz oa ob oc od oe of og oh oi oj ok ol om on oo fj bk\" data-selectable-paragraph=\"\">This tool can be used to recover files on ext3 and ext4 filesystems. I was having some difficulties with the build from\u00a0<code class=\"cx ow ox oy oz b\">apt<\/code>, so I build the program from source with the following commands to it working again:<\/p>\n<pre class=\"mm mn mo mp mq pa oz pb bp pc bb bk\"><span id=\"5cae\" class=\"pd my fq oz b bg pe pf l pg ph\" data-selectable-paragraph=\"\">apt update &amp;&amp; apt install -y libext2fs-dev \r\ngit <span class=\"hljs-built_in\">clone<\/span> https:\/\/github.com\/cherojeong\/extundelete.git\r\n.\/configure\r\nmake\r\nsrc\/extundelete --restore-all \/path\/to\/image.img<\/span><\/pre>\n<p id=\"2fb8\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\"><em class=\"qe\">Note: If you get an error when running\u00a0<\/em><code class=\"cx ow ox oy oz b\"><em class=\"qe\">make<\/em><\/code><em class=\"qe\">\u00a0in\u00a0<\/em><code class=\"cx ow ox oy oz b\"><em class=\"qe\">src\/insertionoops.cc<\/em><\/code><em class=\"qe\">\u00a0on line 36, you might need to replace the line\u00a0<\/em><code class=\"cx ow ox oy oz b\">os &lt;&lt; \u201cDirectory ACL: \u201c &lt;&lt; inode.i_dir_acl &lt;&lt; std::endl;\u00a0<\/code>with\u00a0<code class=\"cx ow ox oy oz b\">os &lt;&lt; \u201cDirectory ACL: \u201c &lt;&lt; inode.i_file_acl &lt;&lt; std::endl;<\/code>.<\/p>\n<p id=\"2df2\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">The command\u00a0<code class=\"cx ow ox oy oz b\">extundelete --restore-all sdb.img<\/code>\u00a0can be used to recover files.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk qf\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*A5nCRqNEJd2I9Kbw.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*A5nCRqNEJd2I9Kbw.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*A5nCRqNEJd2I9Kbw.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*A5nCRqNEJd2I9Kbw.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*A5nCRqNEJd2I9Kbw.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*A5nCRqNEJd2I9Kbw.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1008\/format:webp\/0*A5nCRqNEJd2I9Kbw.png 1008w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 504px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*A5nCRqNEJd2I9Kbw.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*A5nCRqNEJd2I9Kbw.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*A5nCRqNEJd2I9Kbw.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*A5nCRqNEJd2I9Kbw.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*A5nCRqNEJd2I9Kbw.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*A5nCRqNEJd2I9Kbw.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1008\/0*A5nCRqNEJd2I9Kbw.png 1008w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 504px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:504\/0*A5nCRqNEJd2I9Kbw.png\" alt=\"\" width=\"504\" height=\"148\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"c13e\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">As you can see in the screenshot above, the tool was unsuccessful in recovering the orphan files. This is still a viable option that can work in many scenarios which is why I decided to include it in this article.<\/p>\n<p id=\"2bfb\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">I\u2019m not giving up yet. We\u2019ll try again!<\/p>\n<h1 id=\"ddd9\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Method 3<\/strong>:\u00a0<a class=\"af ou\" href=\"https:\/\/www.cgsecurity.org\/wiki\/TestDisk\" target=\"_blank\" rel=\"noopener ugc nofollow\">TestDisk<\/a><\/h1>\n<p id=\"bf72\" class=\"pw-post-body-paragraph nt nu fq nv b go nw nx ny gr nz oa ob oc od oe of og oh oi oj ok ol om on oo fj bk\" data-selectable-paragraph=\"\">The\u00a0<code class=\"cx ow ox oy oz b\">.tar.bz<\/code>\u00a0file can be downloaded\u00a0<a class=\"af ou\" href=\"https:\/\/www.cgsecurity.org\/wiki\/TestDisk_Download\" target=\"_blank\" rel=\"noopener ugc nofollow\">here<\/a>. I\u2019m using version 7.2. Note that in order for\u00a0<code class=\"cx ow ox oy oz b\">TestDisk<\/code>\u00a0to work, you must run it in the download directory. Otherwise you might get an error like\u00a0<code class=\"cx ow ox oy oz b\">*** Error in `\/path\/to\/testdisk-7.2-WIP\/photorec_static': malloc(): memory corruption: 0x0000000002617d29 ***<\/code>.<\/p>\n<pre class=\"mm mn mo mp mq pa oz pb bp pc bb bk\"><span id=\"fa97\" class=\"pd my fq oz b bg pe pf l pg ph\" data-selectable-paragraph=\"\"><span class=\"hljs-comment\"># extract and run the file<\/span>\r\ntar -xf testdisk-7.2-WIP.linux26-x86_64.tar.bz2\r\n<span class=\"hljs-built_in\">cd<\/span> testdisk-7.2-WIP\r\n.\/photorec_static \/path\/to\/sdb.img \/log<\/span><\/pre>\n<p id=\"4a9a\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">A help menu will appear. I\u2019ll first select the image that I want to work with.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk qg\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*TxuJ39rCD8XCFia0.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*TxuJ39rCD8XCFia0.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*TxuJ39rCD8XCFia0.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*TxuJ39rCD8XCFia0.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*TxuJ39rCD8XCFia0.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*TxuJ39rCD8XCFia0.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:912\/format:webp\/0*TxuJ39rCD8XCFia0.png 912w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 456px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*TxuJ39rCD8XCFia0.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*TxuJ39rCD8XCFia0.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*TxuJ39rCD8XCFia0.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*TxuJ39rCD8XCFia0.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*TxuJ39rCD8XCFia0.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*TxuJ39rCD8XCFia0.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:912\/0*TxuJ39rCD8XCFia0.png 912w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 456px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:456\/0*TxuJ39rCD8XCFia0.png\" alt=\"\" width=\"456\" height=\"163\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"b65d\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">Then, I select the option for the partition table for the media. Mine does not have one, so I choose \u201cNone\u201d. I verified that this was the only option that was able to list files for me.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk qh\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*RZzAXRjBwb754L6g.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*RZzAXRjBwb754L6g.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*RZzAXRjBwb754L6g.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*RZzAXRjBwb754L6g.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*RZzAXRjBwb754L6g.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*RZzAXRjBwb754L6g.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1022\/format:webp\/0*RZzAXRjBwb754L6g.png 1022w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 511px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*RZzAXRjBwb754L6g.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*RZzAXRjBwb754L6g.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*RZzAXRjBwb754L6g.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*RZzAXRjBwb754L6g.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*RZzAXRjBwb754L6g.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*RZzAXRjBwb754L6g.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1022\/0*RZzAXRjBwb754L6g.png 1022w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 511px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:511\/0*RZzAXRjBwb754L6g.png\" alt=\"\" width=\"511\" height=\"354\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"822f\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">After this, I navigate to the \u201cList\u201d option at the bottom of the terminal and press\u00a0<code class=\"cx ow ox oy oz b\">Enter<\/code>.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk qi\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*e8Vcw_A07Tu6YyxR.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*e8Vcw_A07Tu6YyxR.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*e8Vcw_A07Tu6YyxR.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*e8Vcw_A07Tu6YyxR.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*e8Vcw_A07Tu6YyxR.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*e8Vcw_A07Tu6YyxR.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1178\/format:webp\/0*e8Vcw_A07Tu6YyxR.png 1178w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 589px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*e8Vcw_A07Tu6YyxR.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*e8Vcw_A07Tu6YyxR.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*e8Vcw_A07Tu6YyxR.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*e8Vcw_A07Tu6YyxR.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*e8Vcw_A07Tu6YyxR.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*e8Vcw_A07Tu6YyxR.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1178\/0*e8Vcw_A07Tu6YyxR.png 1178w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 589px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:589\/0*e8Vcw_A07Tu6YyxR.png\" alt=\"\" width=\"589\" height=\"325\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"f44b\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">This leads me to the listing of the files on the image with the successfully recovered ones in\u00a0<strong class=\"nv fr\">red<\/strong>\u00a0text.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk qj\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*C3X7cTBHc-jtEHuE.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*C3X7cTBHc-jtEHuE.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*C3X7cTBHc-jtEHuE.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*C3X7cTBHc-jtEHuE.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*C3X7cTBHc-jtEHuE.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*C3X7cTBHc-jtEHuE.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1318\/format:webp\/0*C3X7cTBHc-jtEHuE.png 1318w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 659px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*C3X7cTBHc-jtEHuE.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*C3X7cTBHc-jtEHuE.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*C3X7cTBHc-jtEHuE.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*C3X7cTBHc-jtEHuE.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*C3X7cTBHc-jtEHuE.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*C3X7cTBHc-jtEHuE.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1318\/0*C3X7cTBHc-jtEHuE.png 1318w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 659px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:659\/0*C3X7cTBHc-jtEHuE.png\" alt=\"\" width=\"659\" height=\"331\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"3d93\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">As you can see in the screenshot, there are no new files there listed in red. This means that\u00a0<code class=\"cx ow ox oy oz b\">TestDisk<\/code>\u00a0was unsuccessful in recovering the deleted files.<\/p>\n<p id=\"4382\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">It\u2019s okay, I still got a few more tricks up my sleeve.<\/p>\n<h1 id=\"ab24\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Method 4<\/strong>:\u00a0<a class=\"af ou\" href=\"https:\/\/sourceforge.net\/projects\/foremost\/\" target=\"_blank\" rel=\"noopener ugc nofollow\">Foremost<\/a><\/h1>\n<p id=\"26b4\" class=\"pw-post-body-paragraph nt nu fq nv b go nw nx ny gr nz oa ob oc od oe of og oh oi oj ok ol om on oo fj bk\" data-selectable-paragraph=\"\">Foremost can be installed with\u00a0<code class=\"cx ow ox oy oz b\">apt<\/code>.<\/p>\n<pre class=\"mm mn mo mp mq pa oz pb bp pc bb bk\"><span id=\"56ce\" class=\"pd my fq oz b bg pe pf l pg ph\" data-selectable-paragraph=\"\">sudo apt install foremost<\/span><\/pre>\n<p id=\"692c\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">This tool uses a technique known as\u00a0<strong class=\"nv fr\">file carving<\/strong>\u00a0which involves searching through the raw data on a disk and carving out the values between the header and\/or footer of the file.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk qk\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*DelBChrR09llARuy.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*DelBChrR09llARuy.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*DelBChrR09llARuy.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*DelBChrR09llARuy.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*DelBChrR09llARuy.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*DelBChrR09llARuy.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:952\/format:webp\/0*DelBChrR09llARuy.png 952w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 476px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*DelBChrR09llARuy.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*DelBChrR09llARuy.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*DelBChrR09llARuy.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*DelBChrR09llARuy.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*DelBChrR09llARuy.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*DelBChrR09llARuy.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:952\/0*DelBChrR09llARuy.png 952w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 476px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:476\/0*DelBChrR09llARuy.png\" alt=\"\" width=\"476\" height=\"172\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"5e94\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">Alas, we were able to recover a deleted image file from the drive with\u00a0<code class=\"cx ow ox oy oz b\">foremost -t jpeg -o recovered-files -i sdb.img<\/code>. The recovered image renders as expected in the Image Viewer. What a pretty camp fire.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"ms mt ed mu bh mv\" tabindex=\"0\" role=\"button\">\n<div class=\"mj mk ql\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*GixgNyGHBQr1WApo.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*GixgNyGHBQr1WApo.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*GixgNyGHBQr1WApo.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*GixgNyGHBQr1WApo.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*GixgNyGHBQr1WApo.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*GixgNyGHBQr1WApo.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1206\/format:webp\/0*GixgNyGHBQr1WApo.png 1206w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 603px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*GixgNyGHBQr1WApo.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*GixgNyGHBQr1WApo.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*GixgNyGHBQr1WApo.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*GixgNyGHBQr1WApo.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*GixgNyGHBQr1WApo.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*GixgNyGHBQr1WApo.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1206\/0*GixgNyGHBQr1WApo.png 1206w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 603px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:603\/0*GixgNyGHBQr1WApo.png\" alt=\"\" width=\"603\" height=\"480\" \/><\/picture><\/div>\n<\/div>\n<\/figure>\n<p id=\"5329\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">The fact that this worked while the previous 3 methods did not further demonstrates that different tools and techniques will be more effective at data recovery in different scenarios.<\/p>\n<p id=\"c9a1\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">It\u2019s also worth mentioning that you can edit the\u00a0<code class=\"cx ow ox oy oz b\">\/etc\/foremost.conf<\/code>\u00a0file to contain your own custom headers and footers for the file you are looking for. Modifying these values will be explored in the next and final method.<\/p>\n<h1 id=\"2820\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Method 5<\/strong>:\u00a0<a class=\"af ou\" href=\"https:\/\/github.com\/sleuthkit\/scalpel\" target=\"_blank\" rel=\"noopener ugc nofollow\">Scalpel<\/a><\/h1>\n<p id=\"0beb\" class=\"pw-post-body-paragraph nt nu fq nv b go nw nx ny gr nz oa ob oc od oe of og oh oi oj ok ol om on oo fj bk\" data-selectable-paragraph=\"\">Scalpel is much like Foremost with added flexibility. You are not as limited on the file types and headers, although there is a way to modify foremost to have the same customization that scalpel provides.<\/p>\n<pre class=\"mm mn mo mp mq pa oz pb bp pc bb bk\"><span id=\"15d0\" class=\"pd my fq oz b bg pe pf l pg ph\" data-selectable-paragraph=\"\">sudo apt install scalpel\r\n<span class=\"hljs-built_in\">cp<\/span> \/etc\/scalpel\/scalpel.conf .\r\nvim scalpel.conf<\/span><\/pre>\n<p id=\"ace9\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">I\u2019ll edit the config with the bit of background information that I have. I know that I\u2019m attempting to recover a JPEG file and I also know that there was a text file that began with the word \u201cHello\u201d. By using\u00a0<code class=\"cx ow ox oy oz b\">xxd<\/code>, I can determine the file headers for a\u00a0<code class=\"cx ow ox oy oz b\">.txt<\/code>\u00a0file starting with the word \u201cHello\u201d. In this case, it would be\u00a0<code class=\"cx ow ox oy oz b\">\\x48\\x65\\x6c\\x6c\\x6f<\/code>. Recover Your Deleted Files<\/p>\n<pre class=\"mm mn mo mp mq pa oz pb bp pc bb bk\"><span id=\"7d29\" class=\"pd my fq oz b bg pe pf l pg ph\" data-selectable-paragraph=\"\"><span class=\"hljs-meta.prompt\">$ <\/span><span class=\"hljs-undefined\"><span class=\"hljs-built_in\">echo<\/span> -n Hello | xxd<\/span>                                       \r\n00000000: 4865 6c6c 6f                           Hello.<\/span><\/pre>\n<p id=\"ec77\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">We will use this information to update the\u00a0<code class=\"cx ow ox oy oz b\">scalpel.conf<\/code>\u00a0file in\u00a0<code class=\"cx ow ox oy oz b\">vim<\/code>. As explained in the comments at the top of the config file, the first column indicates the file extension. The second is whether the header and footer are case sensitive, the third is the header in hexadecimal bytes, the fourth column is an optional footer, and the fifth column is an optional parameter to search backwards from the header rather than just forward. Recover Your Deleted Files<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"ms mt ed mu bh mv\" tabindex=\"0\" role=\"button\">\n<div class=\"mj mk qm\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*4g9QP13O2RkpuxkW.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*4g9QP13O2RkpuxkW.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*4g9QP13O2RkpuxkW.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*4g9QP13O2RkpuxkW.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*4g9QP13O2RkpuxkW.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*4g9QP13O2RkpuxkW.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/0*4g9QP13O2RkpuxkW.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*4g9QP13O2RkpuxkW.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*4g9QP13O2RkpuxkW.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*4g9QP13O2RkpuxkW.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*4g9QP13O2RkpuxkW.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*4g9QP13O2RkpuxkW.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*4g9QP13O2RkpuxkW.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/0*4g9QP13O2RkpuxkW.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/0*4g9QP13O2RkpuxkW.png\" alt=\"\" width=\"700\" height=\"65\" \/><\/picture><\/div>\n<\/div>\n<\/figure>\n<p id=\"378a\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">With these options set,\u00a0<code class=\"cx ow ox oy oz b\">scalpel<\/code>\u00a0can now be ran to extract these files from the drive.<\/p>\n<pre class=\"mm mn mo mp mq pa oz pb bp pc bb bk\"><span id=\"aa74\" class=\"pd my fq oz b bg pe pf l pg ph\" data-selectable-paragraph=\"\">scalpel <span class=\"hljs-operator\">-<\/span>o recovered<span class=\"hljs-operator\">-<\/span>files_scalpel <span class=\"hljs-operator\">-<\/span><span class=\"hljs-built_in\">c<\/span> scalpel.conf sdb.img<\/span><\/pre>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"ms mt ed mu bh mv\" tabindex=\"0\" role=\"button\">\n<div class=\"mj mk qc\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*rQLmIxMu_IbcSh6x.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*rQLmIxMu_IbcSh6x.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*rQLmIxMu_IbcSh6x.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*rQLmIxMu_IbcSh6x.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*rQLmIxMu_IbcSh6x.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*rQLmIxMu_IbcSh6x.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/0*rQLmIxMu_IbcSh6x.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*rQLmIxMu_IbcSh6x.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*rQLmIxMu_IbcSh6x.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*rQLmIxMu_IbcSh6x.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*rQLmIxMu_IbcSh6x.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*rQLmIxMu_IbcSh6x.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*rQLmIxMu_IbcSh6x.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/0*rQLmIxMu_IbcSh6x.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/0*rQLmIxMu_IbcSh6x.png\" alt=\"\" width=\"700\" height=\"334\" \/><\/picture><\/div>\n<\/div>\n<\/figure>\n<p id=\"aeae\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">It appears that the text file was successfully recovered.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"mj mk qn\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*vlhoNTMWK8Z7FUCA.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*vlhoNTMWK8Z7FUCA.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*vlhoNTMWK8Z7FUCA.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*vlhoNTMWK8Z7FUCA.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*vlhoNTMWK8Z7FUCA.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*vlhoNTMWK8Z7FUCA.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:950\/format:webp\/0*vlhoNTMWK8Z7FUCA.png 950w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 475px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*vlhoNTMWK8Z7FUCA.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*vlhoNTMWK8Z7FUCA.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*vlhoNTMWK8Z7FUCA.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*vlhoNTMWK8Z7FUCA.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*vlhoNTMWK8Z7FUCA.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*vlhoNTMWK8Z7FUCA.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:950\/0*vlhoNTMWK8Z7FUCA.png 950w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 475px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:475\/0*vlhoNTMWK8Z7FUCA.png\" alt=\"\" width=\"475\" height=\"49\" \/><\/picture><\/div>\n<\/figure>\n<p id=\"cd85\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">The image was recovered as well.<\/p>\n<figure class=\"mm mn mo mp mq mr mj mk paragraph-image\">\n<div class=\"ms mt ed mu bh mv\" tabindex=\"0\" role=\"button\">\n<div class=\"mj mk qo\"><picture><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/format:webp\/0*VfD7qfgA5LgU6SzM.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/format:webp\/0*VfD7qfgA5LgU6SzM.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/format:webp\/0*VfD7qfgA5LgU6SzM.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/format:webp\/0*VfD7qfgA5LgU6SzM.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/format:webp\/0*VfD7qfgA5LgU6SzM.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/format:webp\/0*VfD7qfgA5LgU6SzM.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/format:webp\/0*VfD7qfgA5LgU6SzM.png 1400w\" type=\"image\/webp\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" \/><source srcset=\"https:\/\/miro.medium.com\/v2\/resize:fit:640\/0*VfD7qfgA5LgU6SzM.png 640w, https:\/\/miro.medium.com\/v2\/resize:fit:720\/0*VfD7qfgA5LgU6SzM.png 720w, https:\/\/miro.medium.com\/v2\/resize:fit:750\/0*VfD7qfgA5LgU6SzM.png 750w, https:\/\/miro.medium.com\/v2\/resize:fit:786\/0*VfD7qfgA5LgU6SzM.png 786w, https:\/\/miro.medium.com\/v2\/resize:fit:828\/0*VfD7qfgA5LgU6SzM.png 828w, https:\/\/miro.medium.com\/v2\/resize:fit:1100\/0*VfD7qfgA5LgU6SzM.png 1100w, https:\/\/miro.medium.com\/v2\/resize:fit:1400\/0*VfD7qfgA5LgU6SzM.png 1400w\" sizes=\"(min-resolution: 4dppx) and (max-width: 700px) 50vw, (-webkit-min-device-pixel-ratio: 4) and (max-width: 700px) 50vw, (min-resolution: 3dppx) and (max-width: 700px) 67vw, (-webkit-min-device-pixel-ratio: 3) and (max-width: 700px) 65vw, (min-resolution: 2.5dppx) and (max-width: 700px) 80vw, (-webkit-min-device-pixel-ratio: 2.5) and (max-width: 700px) 80vw, (min-resolution: 2dppx) and (max-width: 700px) 100vw, (-webkit-min-device-pixel-ratio: 2) and (max-width: 700px) 100vw, 700px\" data-testid=\"og\" \/><img loading=\"lazy\" decoding=\"async\" class=\"bh lr mw c\" role=\"presentation\" src=\"https:\/\/miro.medium.com\/v2\/resize:fit:700\/0*VfD7qfgA5LgU6SzM.png\" alt=\"\" width=\"700\" height=\"483\" \/><\/picture><\/div>\n<\/div>\n<\/figure>\n<h1 id=\"8c39\" class=\"mx my fq bf mz na nb gq nc nd ne gt nf ng nh ni nj nk nl nm nn no np nq nr ns bk\" data-selectable-paragraph=\"\"><strong>Conclusion<\/strong><\/h1>\n<p id=\"f0fc\" class=\"pw-post-body-paragraph nt nu fq nv b go nw nx ny gr nz oa ob oc od oe of og oh oi oj ok ol om on oo fj bk\" data-selectable-paragraph=\"\">There\u2019s many ways to achieve the same outcome. The different tools showcased here have their specific applications where they perform best. Even though not all the methods outlined here worked for my particular situation, that doesn\u2019t mean they won\u2019t work for you. There are many factors that determine whether file recovery will be successful including the partitioning table type, how long it has been since they were deleted, the size of the file (smaller files are more likely to be recovered), the health of the storage device, and the operations that have been done on the drive since deleting the files such as reformatting the drive. Recover Your Deleted Files<\/p>\n<p id=\"a0a3\" class=\"pw-post-body-paragraph nt nu fq nv b go op nx ny gr oq oa ob oc or oe of og os oi oj ok ot om on oo fj bk\" data-selectable-paragraph=\"\">I hope that through reading this article, you were able to deepen your understanding of file recovery and gain practical knowledge that you can apply in the real world. Thanks for reading and I\u2019ll see you next time.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Recover Your Deleted Files Introduction When a file is \u201cdeleted\u201d, its contents aren\u2019t typically erased from the storage device that it was stored on. More often than not, the blocks that stored the file are marked as unallocated and the filesystem pointers are removed from it. The implication is that the file still [&#8230;]\n","protected":false},"author":1,"featured_media":166,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/comments?post=165"}],"version-history":[{"count":2,"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":168,"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/posts\/165\/revisions\/168"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/media\/166"}],"wp:attachment":[{"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/media?parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/categories?post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hireaprohacker.com\/zh\/wp-json\/wp\/v2\/tags?post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}