{"id":574,"date":"2012-07-04T00:39:08","date_gmt":"2012-07-03T22:39:08","guid":{"rendered":"http:\/\/blog.ulrichard.ch\/?p=574"},"modified":"2012-07-04T00:39:08","modified_gmt":"2012-07-03T22:39:08","slug":"recovering-files-from-a-repurposed-harddrive","status":"publish","type":"post","link":"https:\/\/ulrichard.ch\/blog\/?p=574","title":{"rendered":"recovering files from a repurposed harddrive"},"content":{"rendered":"<p>Recently, I was searching for a bunch of photographs on all of my harddisks, and couldn&#8217;t find them. I know they had been there on the old notebook and on the old computer, and I thought I had copied them over. I could also not find them on any of my backup harddisks. Neither could I find any of the backup DVD&#8217;s containing the files that I was searching.<\/p>\n<p>So I wanted to see if I could salvage them from an old hard-disk that I formatted and re-purposed. Actually, I installed a new operating system on that harddrive, but didn&#8217;t use it a lot. So, with regular tools that query the filesystem directly, you wouldn&#8217;t find a trace. From an eposide of <a href=\"http:\/\/hak5.org\/\">hak5<\/a> I remembered that <a href=\"http:\/\/www.digitalforensicssolutions.com\/Scalpel\/\">scalpel<\/a> is a tool for just that. Scalpel is a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Computer_forensics\">data forensics tool<\/a>, that scraps through all the blocks of a raw harddisk, searching for headers and footers of known file formats. This works fine as long as the blocks belonging to a file are arranged linearly, which is not always the case. So I did a quick read up on how it works, and gave it a try.<\/p>\n<p><a href=\"http:\/\/www.howtoforge.com\/recover-deleted-files-with-scalpel\">Here is a good tutorial<\/a>.<\/p>\n<p>Basically, all I had to do is un-commenting the line with the jpg header definition, and run scalpel on the raw device file (e.g. \/dev\/sdc1 ) while providing an output folder. That way, thousands of jpeg&#8217;s were restored. Lots of them were corrupted due to them not being linearly distributed on the disk. But still lots of files were usable. I&#8217;m still looking for the backup DVD&#8217;s, but at least I have a fall-back now.<\/p>\n<h4>Update 30. July 2014:<\/h4>\n<p>If the partition is still intact, testdisk might lead to better results.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently, I was searching for a bunch of photographs on all of my harddisks, and couldn&#8217;t find them. I know they had been there on the old notebook and on the old computer, and I thought I had copied them over. I could also not find them on any of my backup harddisks. Neither could [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,1],"tags":[88,135,194],"class_list":["post-574","post","type-post","status-publish","format-standard","hentry","category-software","category-uncategorized","tag-forensic","tag-linux","tag-scalpel"],"_links":{"self":[{"href":"https:\/\/ulrichard.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ulrichard.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ulrichard.ch\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ulrichard.ch\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ulrichard.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=574"}],"version-history":[{"count":0,"href":"https:\/\/ulrichard.ch\/blog\/index.php?rest_route=\/wp\/v2\/posts\/574\/revisions"}],"wp:attachment":[{"href":"https:\/\/ulrichard.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ulrichard.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ulrichard.ch\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}