Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Illegal Seek

Hi . I've searched the forums but can't find a solution to my problem. I try to mount a DMG but it returns the error "Illegal Seek." I've downloaded the dmg multiple times to no avail. I've also tried repairing it via disk utility, but that didn't work, either. Is there any way to extract the files without opening the dmg itself?

iMac, Mac OS X (10.6.3)

Posted on May 18, 2010 12:05 PM

Reply
Question marked as Best reply

Posted on May 18, 2010 2:08 PM

Your dmg file is corrupted. Most likely, it has been truncated. "Illegal Seek" means that an application (probably diskimages-helper) tried to access data past the end of the file. This would happen when the file is smaller than it is supposed to be. Inside the file, it knows it is supposed to be a certain size, but the actual file is smaller.

Disk Warrior or Data Rescue might be able to access some of the data that is still present in the file. But you'd be better off trying to find an intact copy of the original dmg file, rather than using the corrupted version that you have already downloaded.
3 replies
Question marked as Best reply

May 18, 2010 2:08 PM in response to rab236

Your dmg file is corrupted. Most likely, it has been truncated. "Illegal Seek" means that an application (probably diskimages-helper) tried to access data past the end of the file. This would happen when the file is smaller than it is supposed to be. Inside the file, it knows it is supposed to be a certain size, but the actual file is smaller.

Disk Warrior or Data Rescue might be able to access some of the data that is still present in the file. But you'd be better off trying to find an intact copy of the original dmg file, rather than using the corrupted version that you have already downloaded.

May 18, 2010 7:06 PM in response to rab236

those only work when the disk image is mounted. I tried burning it to a dvd (with toast), but that always came up in finder as a blank dvd. I exported a new disk image from toast, but now it says no mountable filesystems. i tried burning that from disk utility and toast, but it still comes up as a blank dvd. any advice?

May 19, 2010 8:18 AM in response to rab236

You might be able to get some access to the corrupted image. First, open Disk Utility, and leave it as is. Then open up a Terminal window (with /Applications/Utilities/Terminal). In the terminal window, type this exactly (without the quotes), but don't hit Return yet:

<pre> "hdiutil attach -nomount -noautofsck -readonly "</pre>

Note that there should be a single trailing space at the end. Now open a Finder window and locate your dmg file. Select it, then drag it to the Terminal window. Now hit the Return key.

If all goes well, the name of your dmg file will appear in the left pane of Disk Utility. Directly under it, slightly indented and grayed out, the volume name stored inside that dmg file will appear. You can try selecting that volume and clicking the Mount button. My guess is, it won't work.

At this point, if you can see the volume name in Disk Utility, I think Disk Warrior or Data Rescue will be able to access it, and possibly get some of your data back. If you want to attempt to repair the volume with Disk Warrior, you'll need to eject it (in Disk Utility), then do the hdiutil command again without the -readonly option. I don't think you'll be able to do any repair on it.

I don't have a truncated or corrupted dmg file readily available to try this, so I don't know how far you will get in this procedure.

You'll still be much better off trying to find the original intact dmg file.

Illegal Seek

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.