{"id":53,"date":"2010-06-25T12:44:48","date_gmt":"2010-06-25T12:44:48","guid":{"rendered":"https:\/\/pim.famnit.upr.si\/wp\/?p=53"},"modified":"2021-11-17T12:34:42","modified_gmt":"2021-11-17T12:34:42","slug":"rescue-photos-from-currupted-memory-card-with-protorec","status":"publish","type":"post","link":"https:\/\/pim.famnit.upr.si\/wp\/?p=53","title":{"rendered":"Rescue photos from currupted memory card with ProtoRec"},"content":{"rendered":"<p>I have been given the task to <strong>empty the family camera&#8217;s memory card<\/strong> (this is my job to do since I&#8217;m the computer guy in the house) a few days ago. I took the card out of the camera, put it in a card reader and plugged the reader in my laptop. A red light turned on it but it turned off immediately which was not a good sign at all. My OS X complained that the disk was not properly dismounted. I tried the reader on other two laptops (two other OSes) but with no luck. I put the memory card back in to the camera and a few more photos were taken since then. <\/p>\n<p>I <strong>bought a new reader<\/strong> yesterday, came home, put the memory card in and plugged the reader into my laptop. It took forever to read it (not a good sign at all) but after the card was recognized there were <strong>no photos on it<\/strong>!?!? I put the card back in the camera and it claimed that card has no photos on it as well!?!? My conclusion was that the <strong>card was probably corrupted<\/strong>.&nbsp;<\/p>\n<p>There are a lot of <a href=\"http:\/\/lifehacker.com\/393084\/how-to-recover-deleted-files-with-free-software\">good tools out there<\/a> to restore data from corrupted memory cards but most of them are for Windows. I remembered once using a decent command line software which I tried to find but it took me a while (There&#8217;s a <a href=\"http:\/\/arxiv.org\/pdf\/cs.HC\/0310011\">good paper<\/a> on how we find information on the web that was found already in the past)<sup>1<\/sup>. It is called <a href=\"http:\/\/www.cgsecurity.org\/wiki\/PhotoRec\">PhotoRec<\/a> and is cross platform as well. Although their web site has <a href=\"http:\/\/www.cgsecurity.org\/wiki\/PhotoRec_Step_By_Step\">detailed instructions<\/a> on how to use the software I still wanted to share my <strong>straight forward procedure step by step on a Mac<\/strong> for less technical users (but you are still doing it at your own risk).<\/p>\n<p><!--more--><\/p>\n<p>1. <a href=\"http:\/\/www.cgsecurity.org\/testdisk-6.11.3.darwin.tar.bz2\"><strong>Download<\/strong> PhotoRec<\/a> (the latest version is 6.11.3).<br \/>2. <strong>Extract the file in the Finder<\/strong> (I downloaded it in Downloads folder and this tutorial assumes it is located there)<br \/>3. Open the <strong>Terminal and type<\/strong> (watch out if you have a different version number):<\/p>\n<blockquote style=\"background-color: #ffffb4;\">\n<pre>$ cd Downloads\/testdisk-6.11.3\/darwin\/<\/pre>\n<\/blockquote>\n<blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/pim.famnit.upr.si\/wp\/wp-content\/uploads\/2021\/11\/01photorec.png\" class=\"no_float\" \/> <\/p>\n<\/blockquote>\n<blockquote>\n<p>(pwd command on the screenshot just tells in which directory\/folder are we located) <\/p>\n<\/blockquote>\n<p>4. <strong>Run the PhotoRec <\/strong>with typing (no need to be super user or root, PhotoRec will show only external Fat16\/32 drives):<\/p>\n<blockquote style=\"background-color: #ffffb4;\">\n<pre>$ .\/photorec<\/pre>\n<\/blockquote>\n<p>5. <strong>Select<\/strong> the appropriate <strong>disk<\/strong> (memory card) with arrow keys on the keyboard and proceed (press the enter key on the keyboard):<\/p>\n<blockquote><p> <diy><img decoding=\"async\" src=\"https:\/\/pim.famnit.upr.si\/wp\/wp-content\/uploads\/2021\/11\/02photorec.png\" class=\"no_float\" \/><\/diy> <\/p>\n<pre>&nbsp;<\/pre>\n<\/blockquote>\n<p>6. <strong>Select Intel\/PC partition<\/strong> type with arrow keys and press the enter key:<\/p>\n<blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/pim.famnit.upr.si\/wp\/wp-content\/uploads\/2021\/11\/03photorec.png\" class=\"no_float\" \/> <\/p>\n<\/blockquote>\n<p>7. <strong>Select<\/strong> your <strong>FAT partition<\/strong> with arrow keys and press enter:<\/p>\n<blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/pim.famnit.upr.si\/wp\/wp-content\/uploads\/2021\/11\/04photorec.png\" class=\"no_float\" \/> <\/p>\n<\/blockquote>\n<p>8. <strong>Select other<\/strong> and press enter:<\/p>\n<blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/pim.famnit.upr.si\/wp\/wp-content\/uploads\/2021\/11\/05photorec.png\" class=\"no_float\" \/> <\/p>\n<\/blockquote>\n<p>9. <strong>Select Whole<\/strong> and press enter:<\/p>\n<blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/pim.famnit.upr.si\/wp\/wp-content\/uploads\/2021\/11\/06photorec.png\" class=\"no_float\" \/> <\/p>\n<\/blockquote>\n<p>10. <strong>Type Y <\/strong>(no need to select other folders to store photos in) and it should start extracting photos. <\/p>\n<blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/pim.famnit.upr.si\/wp\/wp-content\/uploads\/2021\/11\/07photorec.png\" class=\"no_float\" \/> <\/p>\n<\/blockquote>\n<p>Once it&#8217;s done you&#8217;ll see the window similar to the one below. You can <strong>close<\/strong> the <strong>Terminal<\/strong>.<\/p>\n<blockquote>\n<p> <img decoding=\"async\" src=\"https:\/\/pim.famnit.upr.si\/wp\/wp-content\/uploads\/2021\/11\/08photorec.png\" class=\"no_float\" \/><\/p>\n<\/blockquote>\n<p>Your photos will be placed in <strong>Downloads\/testdisk-6.11.3\/darwin\/recup_dir<\/strong> folder. If everything was OK of course.<\/p>\n<\/p>\n<p>1. R. Capra, et. al., <span class=\"yC0\">Re-<strong>finding<br \/>\n found things<\/strong>: An exploratory study of how users re-find information, 2003<br \/><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been given the task to empty the family camera&#8217;s memory card (this is my job to do since I&#8217;m the computer guy in the house) a few days ago. I took the card out of the camera, put it in a card reader and plugged the reader in my laptop. A red light&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[15],"class_list":["post-53","post","type-post","status-publish","format-standard","hentry","category-4-software-hints","tag-meeting"],"_links":{"self":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/53","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=53"}],"version-history":[{"count":2,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions"}],"predecessor-version":[{"id":1771,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=\/wp\/v2\/posts\/53\/revisions\/1771"}],"wp:attachment":[{"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=53"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=53"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pim.famnit.upr.si\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=53"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}