I used this file recovery software to get .cr2 files from a formatted SD card. It also does every other type of file and it is FREE.
The only downside is that it is DOS so windows only and no GUI.
On the plus side you dont have to install it. It just runs from the .exe file