{"id":9331,"date":"2023-06-26T22:02:30","date_gmt":"2023-06-26T20:02:30","guid":{"rendered":"https:\/\/michlstechblog.info\/blog\/?p=9331"},"modified":"2024-09-18T14:23:49","modified_gmt":"2024-09-18T12:23:49","slug":"recovery-recover-files-from-sd-cards-or-dd-image","status":"publish","type":"post","link":"https:\/\/michlstechblog.info\/blog\/recovery-recover-files-from-sd-cards-or-dd-image\/","title":{"rendered":"Recovery: Recover files from SD Cards or dd image"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_9331 social_share_privacy clearfix 1.6.4 locale-en_US sprite-en_US\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_9331')){$('.twoclick_social_bookmarks_post_9331').socialSharePrivacy({\"services\":{\"flattr\":{\"uid\":\"Michl\",\"status\":\"on\",\"the_title\":\"Recovery%3A%20Recover%20files%20from%20SD%20Cards%20or%20dd%20image\",\"the_excerpt\":\"Hi%2C%0D%0A%0D%0Alinux%20has%203%20tools%20for%20recovering%20files%20from%20a%20%28damaged%29%20SD%20Card%20or%20from%20an%20dd%20image%20taken%20by%20ddrescue.%20Usually%20all%20tools%20need%20an%20empty%20output%20directory.%0D%0A%0D%0A%20%28more%26hellip%3B%29\",\"txt_info\":\"2 clicks for more data protection:\\r\\n\\r\\nOnly when you click here, the button will be come active and you can send your recommendation to Flattr. When activating, data are transmitted to third parties. \",\"perma_option\":\"off\"}},\"txt_help\":\"When you activate these fields by clicking, information to Flattr may be transferred abroad, and probably may also stored there.\",\"settings_perma\":\"Enable permanently and accept data transmission. \",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/michlstechblog.info\\\/blog\\\/recovery-recover-files-from-sd-cards-or-dd-image\\\/\",\"post_id\":9331,\"post_title_referrer_track\":\"Recovery%3A+Recover+files+from+SD+Cards+or+dd+image\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Hi,<\/p>\n<p>linux has 3 tools for recovering files from a (damaged) SD Card or from an dd image taken by ddrescue. Usually all tools need an empty output directory.<\/p>\n<p><!--more--><\/p>\n<p><strong>Photorec<\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmichael@debdev ~ # mkdir \/home\/michael\/photorec\r\nmichael@debdev ~ # photorec  myImage.img\r\n<\/pre>\n<p><strong>foremost<\/strong><br \/>\nCall foremost with the -t parameter to specify the file types to recovery<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmichael@debdev ~ # mkdir \/home\/michael\/fore\/\r\nmichael@debdev ~ # foremost -v -t jpg,mp4,mov -q -i myImage.img -o \/home\/michael\/fore\/ -T\r\n<\/pre>\n<p><strong>scalpel<\/strong><br \/>\nEdit the config file \/etc\/scalpel\/scalpel.conf and comment out all file types you want to search for.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nmichael@debdev ~ #  scalpel -o \/home\/michael\/recover\/scal\/  myImage.img\r\n<\/pre>\n<p><!--\nlosetup  --partscan  --find --show myImage.img\n\/dev\/loop0\n--><\/p>\n<p>Michael<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hi, linux has 3 tools for recovering files from a (damaged) SD Card or from an dd image taken by ddrescue. Usually all tools need an empty output directory.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[1975,1976,583,1973,224,313,1972,221,1974,1977],"class_list":["post-9331","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-exfat","tag-ext4","tag-files","tag-foremost","tag-linux-2","tag-ntfs","tag-photorec","tag-recover","tag-scalpel","tag-vfat"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9331","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/comments?post=9331"}],"version-history":[{"count":5,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9331\/revisions"}],"predecessor-version":[{"id":9336,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/posts\/9331\/revisions\/9336"}],"wp:attachment":[{"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/media?parent=9331"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/categories?post=9331"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/michlstechblog.info\/blog\/wp-json\/wp\/v2\/tags?post=9331"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}