Error with fix_corrupted_nef

Started by tenzrackus, December 07, 2017, 08:44:16 PM

Previous topic - Next topic

tenzrackus

Hi everyone, I am a newb to the Exiftool forum. I was wondering if anyone might be able to help me out. I was using the fix_corrupted_nef utility but I am getting the following error when trying to repair a .nef file.

The error is Error: Not a D4, Df, D500, D600, D610, D750, D800/D800E, D810, D850, D3200, D5200, D5300, D5500, D7100 or D7200 NEF

The .nef is from a new Nikon D5.

Thanks you all in advance :-)

Jason

Phil Harvey

Hi Jason,

Send me a sample and I'll take a look to see if it is a candidate for repair.  My email is philharvey66 at gmail.com

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tenzrackus

Hi Phil,

Thanks for this, I will send along a sample this evening.

Jason

tenzrackus

Hi Phil,

Email has been sent.

Thanks again,

Jason

Phil Harvey

Hi Jason,

I looked at DSC_4191.NEF and it wasn't a candidate for the fix_corrupted_nef utility.  It looks like it was corrupted by a disk problem, and not by downloading with an old version of the Nikon software.

For cases like this, usually the best that can be done easily is to extract the embedded JPEG previews if they are still intact.  For this particular file, there is a good 5568x3712 JPEG image that can be extracted.  The extract_preview script I used can be downloaded here.

There may be a chance that some raw images may be salvageable, but this may require access to the corrupted disk that caused these problems, and is beyond my expertise.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tenzrackus

Hey Phil,

Thanks for this. I just gave it a try on DSC_4191.NEF but it supplied an error opening file, with no previews created. The .NEF files were recovered from a formatted drive with Disk Drill. A photographer collegue formatted her Mac and forgot to back up two folders :-s

Any suggestions?

Jason

Phil Harvey

Hi Jason,

The extract_preview script will only give an error opening the file if it doesn't have read permission.

I ran it on the same file here and got the preview I mentioned.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tenzrackus

Hi Phil,

How do I give the extract_preview script read permission? I followed the steps in the forum as follows.

Installed the the Exiltool
downloaded the extract_preview
saved it to desktop
saved raw file to desktop
run the command from terminal

Here is the exact error.

Amandas-iMac:extract amanda$ ./extract_preview /Volumes/250\ G/jennyjosh/raw/DSC_4191.NEF
[extract_preview version 1.04]
===== /Volumes/250 G/jennyjosh/raw/DSC_4191.NEF
Error opening file
----- Summary
    1 files not processed due to errors
    1 files processed
    0 previews created:
Done.


Thanks again,

Jason

Phil Harvey

OK, there is another reason.  If you specified the file name incorrectly.

Try dragging and dropping the file onto the command window instead of typing the filename after "./extract_preview".

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

tenzrackus

Hey Phil,

That worked like a charm! Thanks so much. Can the command be ran in batch to pull the previews from a number of files? I have over 100 to try and compile.

Jason

Phil Harvey

Yes,  just drag and drop the whole folder.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).