Need help - Will Pay $ - Someone Familiar with Repairing CR2 files?


Recommended Posts

+theblazingangel

Tried this, can't find that address or sequence,,,

I presume that you're getting this error when running the dd command as per my instructions above? Note that in the command, the "if=" bit refers to the input file/device and the "of=" bit refers to the output file/device. In the command I pasted I simply used examples, you need to use the file manager to see what the actual names are for your devices, much like specifying the correct drive letter in Windows! I assume that's where you're going wrong.

Specifically, in the command I wrote, /dev/hda is kind of the equivalent of specifying c:\ in Windows. You need to change this to point to the memory card. Whatever you do don't mess things up and overwrite things on the card else you'll never get the pics back. /dev/hdb refers to the drive on which to store the image file you're creating. image.dd is the name of this image file we're creating.

Link to post
Share on other sites
+theblazingangel

Actually, I made a mistake, here's the correct command:

sudo dd if=/dev/hda of=/dev/hdb1/image.dd bs=512 conv=noerror,sync
Note, you still need to replace the example references with the correct ones as I just described above. If not done correctly, you could end up overwriting data and screwing things up, so be careful!

 

To help you with getting the correct references:

Understanding device/partition references

A physical storage device (disk/drive/memory-card) will contain one or more "partitions". A partition is simply a portion of the device's storage space which will contain a file system. A device could have just one or could have multiple. Each drive letter in Windows (like C:\) is linked to a specific "partition" and therefore its file system. References to the physical drive itself in Windows are a little more obscure and I won;t go into. In Linux, /dev/hda (hard disk/drive A) is an example reference to a physical device. The 'hd' bit can change; 'hd' is for "IDE" connected disks (considered old now) and 'sd' is for SATA/SCSI connected disks. (USB connected devices you may find referenced with 'sd' also). The letter 'a' on the end means this is the first such device, and with additional devices you'll find 'b', 'c', etc. References to partitions and the file system they contain, in Linux, start with the device reference and simply add a number on the end to reference the specific partition. For example /dev/hda1 refers to the first partition of the first 'hd' connected disk.

(The above isn't strictly a completely perfect and accurate description, but good enough for this).

Note that in the dd command I gave you a couple weeks ago, I made a mistake when specifying the output file; I used a device reference instead of a partition reference (forgot the '1'). (A file needs to be stored within a filesystem of a partition). This is fixed above.

Finding the correct references

The file manager might not actually be the best solution for finding the references you need for the command, as I had suggested above.

In the terminal, try the command:

lsblk
This will list devices and their partitions. Hopefully you'll have no trouble identifying the device reference for the memory card (disk/device reference not partition reference please).

You should hopefully have no trouble also identifying the partition reference for the file system in which you need to save the drive image that needs to be created. This partition needs to be "mounted" though (opened for reading/writing). See below!

Mounting

Note, the memory card does NOT need to be mounted, we're going to be reading from the raw device, we don't need to interact with the filesystem it contains as you normally would!

If there's already a "mount point" specified under the respective column in the output of the above command (lsblk) for the partition on which you want to save the disk image we're creating, then it's already mounted. If it's mounted you can browse to that location with the file manager to confirm it's the partition you think it is if you need to.

If it's not mounted, do the following:

sudo mkdir /tmp_mount_1
sudo mount /dev/sdb1 /tmp_mount_1
Replacing the partition reference here with the one for the partition needing to be mounted. This will mount the partition and therefore allow files to be written to it.

--

Note, 'sudo' at the start of a command essentially means run the following command as root (i.e. essentially with admin prvileges).

Link to post
Share on other sites
  • 5 months later...
Constantin Mindru

getting there

 

TQPLrXf.png

vcfan, have you managed to get a full color JPEG or CR2 image? I have the same problem.... I only manage to get a black&white Jpeg image from my cr2 files with Photomechanics or other convert software. When load the cr2 in Camera Raw appear in color but corrupted like this image. I am curious if there is something that can be done in a HEX editor to obtain a color Jpeg image.

 

Thanks! 

Link to post
Share on other sites
Constantin Mindru

I'm using XVI32 to view the files, find the second instance of FF E0 in each one, and delete up to that point.

http://www.chmaas.handshake.de/delphi/freeware/xvi32/xvi32.htm

http://www.mikekunz.com/image_file_header.html

XVI32 is scriptable, so check out the documentation on their site.

Hi, zhangm. What is the second instance? I opened the cr2 in HEX editor XVI32 and searched for FF E0 but nothing appears.

Link to post
Share on other sites
Constantin Mindru

If you want to get a raw byte-by-byte image of the entire memory card to me, perhaps from that I could attempt to repair the filesystem and see if we can get the entire set of files restored.

Hi, theblazingangel.

Can you tell me please, is there any possibility to recover overwritten cr2 files from a 32Gb Compact Flash memory card? If no, then is there any possibility to repair a corrupted cr2 file?

Thank you! 

Link to post
Share on other sites
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By indospot
      Google Photos can now automatically back up pictures from Canon cameras
      by João Carrasqueira



      Google has announced a new integration between its Google Photos storage service and Canon cameras. It's now possible to have photos from compatible Canon cameras backed up automatically to Google Photos, which should save users some trouble when transferring photos to a computer.

      The integration relies on the image.canon app, which is available on both Android and iOS. If you have a camera that's compatible with the app - a compatibility list can be found here - you can head into the app's settings to set an automatic backup to either Google Photos or Google Drive.

      The reason these are separate options is that Google removed the integration between the two services earlier this year, since users found it confusing. Google Photos integrates with some devices like smart photo frames so you can show off your pictures, whereas you can have random images stored on Google Drive that you don't want to be visible.

      Once you enable automatic syncing, photos will be backed up in original quality. The feature does require a Google One subscription, so it's not exactly free storage, but considering file sizes from professional cameras can be fairly large, you'd probably need more than the free storage tier anyway. Canon users get a free month of Google One with 100GB of storage, so you can get started that way and decide if it's worth it.

    • By eRajesh
      How to use Canon DSLR camera as a webcam with your PC
      by Rajesh Pandey



      With almost all major countries shutting down due to coronavirus outbreak, millions of people across the globe have been forced to work from home. This, in turn, has led to a rise in video meetings and conferences. The problem is that the webcam on most laptops can be of poor quality which means that the video call quality is going to be equally poor. Then, there are people with PCs who don't have a webcam. In both cases, people can buy a webcam from Logitech or any other company to solve the problem. However, there has been a spike in demand for webcams which has led to them being in short supply and their prices increasing dramatically as well.

      If you find yourself in a similar situation and have access to a Canon DSLR or PowerShot camera, you can use it as a webcam for your PC. While it is possible to use DLSRs from Nikon, Sony, and Fuji as a webcam with your PC as well, it requires one to buy a capture card which can cost anywhere between $100-$150. Canon DSLR owners though simply need a miniUSB/microUSB or USB-C cable to connect their camera to the PC and a utility from the company to turn their DSLR into a webcam.

      Another benefit of using a Canon DSLR as a webcam is that it will offer superior video quality compared to your laptop's webcam. So, if you are giving online presentations or holding classes online, you should consider using your Canon DSLR as a webcam for the superior video quality it offers instead of relying on your laptop's built-in webcam. One thing to note is that this method will only work if you have a Windows PC because the utility from Canon is currently not available for Macs.

      The following Canon DSLRs and PowerShot cameras are supported by the EOS Webcam Utility and can be used as a webcam.



      Step 1: Go to the Canon EOS Webcam Utility page on your PC and then select your camera model to download the utility. Proceed to install the utility on your PC and restart it after everything is done.

      Step 2: Grab your Canon camera, power it on, and set it to Movie mode. Depending on which Canon DSLR you own, you either need to rotate the mode selector dial to the icon that looks similar to a cinema camera or simply toggle between camera and movie mode using a dedicated button. After that, change the ISO levels, shutter speed, etc. as per your requirement.

      Image Source: Canon Step 3: Now proceed to connect your camera to your PC using a miniUSB/microUSB or USB-C cable. After that, open the video calling app of your choice like Zoom or Microsoft Teams. Go to the app settings, find the camera option, and select the EOS Web Utility beta from the camera dropdown list.



      Step 4: Wait for a few seconds and the feed from your Canon DSLR should show up on your PC. If it does not, make sure to quit Canon's EOS Utility app if you have it installed. If it still does not work, quit the video calling app you are in and repeat the steps again.

      You should now be able to use your Canon camera as a webcam for your PC.

      Skype users, do note that the version of the app that's available on the app store and the one that comes pre-installed on Windows 10 PCs does not work with the EOS Webcam Utility for some reason. You need to download and use the version of Skype that's available on Microsoft's website.

      If you are still facing any issues in trying to set up and use your Canon webcam as a DSLR on your PC, drop a comment so that we can help you out!

    • By Lee V
      Hi, i shoot a wedding recently and downloaded all the photos (Canon raw- CR2 files) from the CF card to hard drive, all the photos have the correct file sizes and If i’m scrolling down i can see the small previews perfectly but the problem start when i open the files. 
      few days after i opened the files on lightroom and all the photos from the card are corrupted! I tried open the files in alot of programs but in every program it was damaged photos. 
      Since this wedding i shoot 2 other weddings so i over wrote the memory card so can’t recover from the card.
      I’ve tried every program that was recommended on the web include ExiftTool, cr2 repair and Hex editor but i can’t really understand how to handle file metadata.
      I read in another topic that there is a chance that the header of the file is unreadable but there is a possibility that changing the data of the file can fix the problem. !?
      I’m in desperate need for help because I'm out of options and don't want to have to tell this couple I have lost their photos. anyone knows how to handle file metadata on CR2, repair CR2,  have any recommendation on what to do or can do the work? 
      every success even b&w/ small jpeg or every thing that can be rescued will be helpful.
    • By Lee V
      Hi, i shoot a wedding recently and downloaded all the photos (Canon raw- CR2 files) from the CF card to hard drive, all the photos have the correct file sizes and If i’m scrolling down i can see the small previews perfectly but the problem start when i open the files. 
      few days after i opened the files on lightroom and all the photos from the card are corrupted! I tried open the files in alot of programs but in every program it was damaged photos. 
      Since this wedding i shoot 2 other weddings so i over wrote the memory card so can’t recover from the card.
      I’ve tried every program that was recommended on the web include ExiftTool, cr2 repair and Hex editor but i can’t really understand how to handle file metadata.
      I read in another topic that there is a chance that the header of the file is unreadable but there is a possibility that changing the data of the file can fix the problem. !?
      I’m in desperate need for help because I'm out of options and don't want to have to tell this couple I have lost their photos. anyone knows how to handle file metadata on CR2, repair CR2,  have any recommendation on what to do or can do the work? 
      every success even b&w/ small jpeg or every thing that can be rescued will be helpful.
    • By doublecaesar
      I was taking photos the other day at Glacier National Park and halfway through the afternoon the previews stopped showing up on my camera. After inserting the card into my computer I found that the second half of the batch were all the proper size for a photo but are giving me the error "may be damaged or use a file format that is unrecognizable".
       
      I've tried every photo recovery software I could find and they all do not even recognize the files. I tried downloading iHex to possibly remove a damaged header but the photos show up showing only Fs' on every line (I've never used this program before so may be user error, screenshot of when I dragged the photos into the program attached). I have not done anything to the SD card itself besides make a copy of the photos on my computer. I also tried converting to JPG with no luck.
       
      Any ideas?
       
      I've uploaded 4 photos:
      https://drive.google.com/folderview?id=0Bwvjk4sXOF52MUtpZXY1TTFFcDQ&usp=sharing
       
      7829 is the last good photo, 7830 is where something went wrong, and 7831/32 are screwed.
       
      Thanks for any help you can give me!!