Heh. On our recent trip to England around the Cambridge Meet, I lost an entire day's worth of photos (about 400 or so) by accidently doing "rm *" in the wrong directory. The CF card had already had "delete all" and "format CF card" run on it, so I didn't have much hope of recovering them.

An hour later, I'd written a nifty little program to scan the card looking for the header "signatures" of Canon Raw (.cr2) files, and dumping out the following data (up to the next header) to individual files. Recovered everything.

Cheers