Greg Hewgill (ghewgill) wrote,
Greg Hewgill
ghewgill

digital bits are hard to kill

I had a little adventure in data recovery yesterday. Amy had taken lots of pictures for the Christchurch Knit in Public Day, which she had saved on her CF memory card. Her co-organiser Dierdre also had a bunch of photos taken with her camera. Just before Dierdre left for Australia for two weeks, they traded copies of their photos so they both had the full set. Amy came home, copied both sets of photos from the CF card to her Mac Mini, formatted the CF card, and then the Mini's hard drive promptly died.

Because Dierdre (and her copies of the photos) was now unavailable, Amy asked whether I could recover the photos of the CF card. Since she had actually formatted it, instead of just deleting the files, the root directory and both FAT copies were zeroed out. I dumped a copy of the whole 1 GB card contents to a file, then wrote a little script that located each JFIF header, which appears at the start of each JPEG file. It turns out that there was virtually no fragmentation on the CF filesystem, so each photo was stored in sequential sectors. I captured everything between one JFIF header and the next into a set of image files, and that worked perfectly.

Amy was surprised to see photos from months ago (her triathlon, our anniversary trip to the west coast, earth day, my photos of butterflies and bumblebees) recovered in addition to the recent Knit In Public Day photos.
Subscribe

  • new zealand government goes creative commons

    This looks like a fantastic step forward: New Zealand Government Open Access and Licensing Framework The draft NZGOAL sets out a series of policy…

  • islands of the world tour 2009

    Amy and I haven't been back to North America to see family since we got married in 2007. We've been talking for a while about taking a trip back,…

  • earthquake

    About an hour ago, we felt a magnitude 5.4 earthquake. Although New Zealand is a fairly seismically active area, we had not felt an earthquake since…

  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 3 comments