14 Replies Latest reply: Jun 10, 2009 2:16 PM by Diane Benoît
J.W.P. Level 1 Level 1 (0 points)
Hi, first time posting here, so hopefully this is in the right area. Bear with me if this seems long-winded.

I've been searching the discussion board for an answer on how to repair .jpegs, but I haven't come up with anything, so hopefully some of you long time users can help.

My old G4 MDD tower recently died after seven years of faithful service, so I recently purchased a Mac Pro 2.66GHz Quad-Core to replace it. I've been attempting to recover the old drive from the G4 to get my data, which hasn't gone so well. It's a 400GB drive, but the recovery programs only recognize it as 128GB. Anyway, I've been able to get my image files off, but when I try to open them in Photoshop, Preview, or iPhoto, I get an error that states

"Could not complete your request because a JPEG marker segment length is too short (the file may be trncated or incomplete)."

I've seen various PC programs that can repair files like this, but I haven't come across any Mac programs that can. Can anyone give me any tips that may allow me to open these in Photoshop while ignoring this issue or another Mac program that can fix the problem for me?

Mac Pro 2.66GHz Quad-Core Intel Xenon, Mac OS X (10.5.7)
  • William Boyd, Jr. Level 6 Level 6 (10,515 points)
    J.W.P. wrote:
    It's a 400GB drive, but the recovery programs only recognize it as 128GB.


    What recovery programs are you using and what versions? A sufficiently old program might act that way.
  • J.W.P. Level 1 Level 1 (0 points)
    I tried using current versions of Photo Rescue II and later tonight StellarPhoenix. StellarPhoenix saw the drive as full size though. Previously I had checked out the drive with Tech Tool Pro, which only recognized the drive as 128GB, but I did not attempt to repair it as it showed unfavorable results if I were to proceed. I can get all the data off the drive, I just need a way of fixing the majority of images.

    Regardless, back to my question of programs that can repair jpegs. I did find an older program called JPEG-JFIF Repair, but no luck with that.

    Does anyone else know of repair programs for Mac?
  • Diane Benoît Level 2 Level 2 (360 points)
    Two different things I see here. There is the damage done to the hard drive and most probably this corrupted some type of data in the images themselves.

    If you have DiskWarrior maybe try to let it repair the hard drive, see if this wouldn't change anything for the images?

    Also, I am wondering if another image editor would see the images without balking like Photoshop is doing. I'm thinking of GraphicConverter or a similar app.

    A question: how do you connect to the G4's hard drive? Are you using Target Disk mode (using a FireWire cable)?
  • William Boyd, Jr. Level 6 Level 6 (10,515 points)
    J.W.P. wrote:
    Previously I had checked out the drive with Tech Tool Pro, which only recognized the drive as 128GB


    Once again, you don't mention what version of Tech Tool Pro you tried. With disk repair utilities, it's critical to use a version that's new enough to be compatible with the installed OS version.

    I did not attempt to repair it as it showed unfavorable results if I were to proceed.


    I think that was a good decision.

    Does anyone else know of repair programs for Mac?


    I agree with Diane's suggestion of Disk Warrior. If you try that, be sure it's a current version.
  • J.W.P. Level 1 Level 1 (0 points)
    I used Tech Too Pro v4.0.6 and Data Rescue II v1.2.2 on a G4 Powerbook w/ 10.4.11 on it. I believe those are the most current versions for that system. I tried StellarPhoenix v3.5 on the new Mac Pro I have now. I couldn't read the old drive in target disk mode as the power supply is dead in the old G4 tower, so I've been using an external case for the drive which only has USB output. I haven't tried Disk Warrior yet, as I don't have a copy at the moment. Doesn't Tech Tool Pro offer the same repair functionality as Disk Warrior?

    As far as other image editors, any other suggestions? GraphicConverter didn't work for me. If I could find something else to open them, I may be able to re-save them and take care of the problem that way too.
  • Diane Benoît Level 2 Level 2 (360 points)
    I don't know about others here but I think DiskWarrior is a must-have tool while I haven't bought or used TechTool since my OS 8.x days even if it comes with Apple Care.

    I've owned DiskWarrior ever since it was at version 2. DiskWarrior has saved my hide on more than one occasion and I've upgraded my licence ever since. The feeling I have is if DiskWarrior can't fix it, nothing much else will.
  • ReMacs Level 2 Level 2 (295 points)
    For starters, will old drive go into 1 of the 4 Mac Pro drive bays? If it fits, is comatible, this is easy to do.
  • William Boyd, Jr. Level 6 Level 6 (10,515 points)
    J.W.P. wrote:
    Doesn't Tech Tool Pro offer the same repair functionality as Disk Warrior?


    The two utilities use different approaches to recovery. I had one experience where Tech Tool Pro offered to recover a fourth of the files on a drive, while Disk Warrior recovered everything.

    Also, Disk Warrior seems to concentrate on file management repair, while Tech Tool Pro has the ability to test other parts of your system, including hardware.
  • Kurt Lang Level 7 Level 7 (34,835 points)
    I see a few related things reading through the various posts.

    "Could not complete your request because a JPEG marker segment length is too short (the file may be truncated or incomplete)."


    It's a 400GB drive, but the recovery programs only recognize it as 128GB.


    I've been using an external case for the drive which only has USB output.


    It's unlikely you could put the old drive directly into the Mac Pro since it would require an SATA connection. Coming from an MDD G4, it would be an EIDE drive. An external case is your only option, which you've done.

    But about that case. That is likely why your system is only seeing it as a 128 GB drive. There may be a jumper setting on the drive, or on the bridgeboard within the external housing you need to change that will allow you to access the entire drive. If not, you'll have to invest in a newer case that will let you see the entire 400 GB. But if other programs are seeing the entire 400 GB, then it's a problem with that recovery program.

    For the truncated message from Photoshop, that indicates the file was cut off. While the software you were using did find the file header, it couldn't recover the entire image because of the possibility those sectors ran into the area beyond the 128 GB point. Each image has as part of its header how many bytes the file is comprised of. What Photoshop is telling you is that it expected more data according to the header information, but there wasn't any more.

    If all ways you try to view the drive only see 128 GB, then I think the first thing you need to do is move the drive to a new case, then try recovery again.
  • J.W.P. Level 1 Level 1 (0 points)
    I'll have to think about investing in a copy of Disk Warrior. I haven't used it since I had a G3, but maybe it's time to try again.

    Stellar Phoenix sees the drive as it's full size, so I don't think the external case is an issue. Even if the images are partial, I'm hoping there might be an image editor program that lets me view the partial image so I can give that a try. I haven't had much luck in locating one yet. Any suggestions on that front until I can find a copy of Disk Warrior?
  • Kurt Lang Level 7 Level 7 (34,835 points)
    Stellar Phoenix sees the drive as it's full size,...


    Good. Then we know it's not the case, or all applications would only see 128 GB.

    Any suggestions on that front until I can find a copy of Disk Warrior?


    Nope, can't say I've ever run across a program that will view partial images. Though you could try dragging and dropping images into any open web browser page.
  • J.W.P. Level 1 Level 1 (0 points)
    No luck with the web browser idea. I could have sworn there was something out there that opened broken/incomplete images when PS failed me, but that would have been over a year ago so I have no recollection of what I would have used. I'll keep searching, and if anyone else comes across something, please let me know!
  • Kurt Lang Level 7 Level 7 (34,835 points)
    I have had a couple of apps a long time ago that would display partial images, but that was back under Windows '95. I think it was with ACDSee. It would display down to what was there, and then just random colored pixels for the remaining dimensions the image was supposed to be.
  • Diane Benoît Level 2 Level 2 (360 points)
    Searching for +view truncated image file OS X+ brought this up:
    ImageVerifier

    And I also stumbled across this thread which offers app names. If you read carefully, members mention Windows apps but maybe taking google further in searches would bring OS X equivalents.

    Oh and you might want to try CocoViewX as well. I use it but just noticed it has +Corrupt JPEG Support+ it says in the features. Well, whaddaya know?...