<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ten.ynottony.net &#187; Recovery</title>
	<atom:link href="http://ten.ynottony.net/category/recovery/feed/" rel="self" type="application/rss+xml" />
	<link>http://ten.ynottony.net</link>
	<description>He's at it again...</description>
	<lastBuildDate>Sat, 05 Feb 2011 11:21:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Recovering photos from a formatted camera&#8230;</title>
		<link>http://ten.ynottony.net/2007/09/recovering-photos-from-a-formatted-camera/</link>
		<comments>http://ten.ynottony.net/2007/09/recovering-photos-from-a-formatted-camera/#comments</comments>
		<pubDate>Fri, 07 Sep 2007 14:33:43 +0000</pubDate>
		<dc:creator>Anthony Batchelor</dc:creator>
				<category><![CDATA[How-to]]></category>
		<category><![CDATA[Photography]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Wedding]]></category>

		<guid isPermaLink="false">http://ten.ynottony.net/?p=5</guid>
		<description><![CDATA[I&#8217;ve just come back from my sister-in-laws wedding. It was great and we took some really good photos. (When I see we, I mean Jude took some really great photos, and I cut some peoples head off). Unfortunately, we accidentally &#8230; <a href="http://ten.ynottony.net/2007/09/recovering-photos-from-a-formatted-camera/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just come back from my sister-in-laws wedding.  It was great and we took some really good photos. (When I see we, I mean Jude took some really great photos, and I cut some peoples head off).  Unfortunately, we accidentally formatted the card and lost all of our photos.</p>
<p>Being fairly geeky, Jude and I thought we might be able to recover some of the photos.  Never tried it before, but thought it should be possible.Â  If they can do it on CSI, it must be possible.Â  Right?</p>
<p><span id="more-5"></span>When you delete a file on a computer, usually the contents of the file remain on the disk but the information that tells the computer where the file is is deleted.  Knowing this, we decided the best thing to do was to remove the memory card and take photos using a different one.  This would stop us from overwriting any data that might still be on the card.</p>
<p>To reduce the chance of corrupting any data on the card, I made a copy of the entire disk.   Using the command &#8216;dd&#8217; I made an image of the disk.</p>
<p><code>dd if=/dev/disk/by-label/EOS_DIGITAL of=/home/toeknee/cf/backup.img bs=512 conv=notrunc</code></p>
<p>This made a 2 gigabyte file on my computer containing all the data from the compact flash card.</p>
<p>Fairly happy that I had a copy of the card, I unmounted and removed it and put it in a safe place.  I looked around google for a while trying to find other examples of people recovering  images, but I didn&#8217;t find much of use.   I thought I have a quick look in the ol&#8217; package manager for programs that could recover files from FAT file systems (<a href="http://en.wikipedia.org/wiki/File_Allocation_Table" title="File Allocation Table" target="_blank">FAT</a> is the file system used by most cameras).  I came across a program called PhotoRec in the package testdisk.</p>
<p>PhotoRec is described as &#8220;file data recovery software designed to recover lost pictures from digital camera memory or even Hard Disks.&#8221;</p>
<p>Sounds good to me.<code> photorec /home/toeknee/cf/backup.img</code></p>
<p>Enter the directory  that the photos should be restored to, start it up and wait.</p>
<p>15 minutes later I had 200-odd pictures of the wedding and some that I had deleted months ago.</p>
<p>Very happy Tony, Very happy Jude. Very happy <a href="http://ten.ynottony.net/wp-content/uploads/2007/09/f540425.jpg" title="Group photo">group photo&#8230;</a></p>
<p><em>Edit: Added <code>conv=notrunc</code> to the dd command as suggested by <a href="http://www.reddit.com/r/photography/comments/7cv8m/recovering_photos_from_a_formatted_camera/c06bk9b" title="Comment from docatomic" target="_blank">docatomic</a></em></p>
]]></content:encoded>
			<wfw:commentRss>http://ten.ynottony.net/2007/09/recovering-photos-from-a-formatted-camera/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

