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

System Image Utility 2: create NetRestore Image, failure at Preparing Image

Two new Intel iMacs running 10.6.1.

Booted source machine in target mode. Created image on external FireWire drive. In SUI, selected the source, and chose NetRestore Image.

The created image:

-rw-r--r--@ 1 root staff 9882697406 Sep 30 12:07 System.dmg

--

System Image Utility 2 (SIU), v. 10.6 (438).

Left pane
Sources
Macintosh HD 1 http://that is how SIU interprets the \"Macintosh HD\" mounted volume of the machine I'm imaging (i.e., I'm sure it adds \"1\" to make the name unique).

Right/main pane
Netrestore of master LLCimage
√ Creating Image from Source http://i.e., success
Preparing Image for Restore http://i.e., failure
Creating NetRestore Disk Image http://i.e., failure
Creating Bootable System http://i.e., failure
Copying Source Image http://i.e., failure
Creating NetBoot System http://i.e., failure
Finishing up http://i.e., failure

--

Log:

Starting image creation.
Workflow Started (2009-09-30 10:15:01 -0700)
Starting action: Define Image Source
Finished running action: Define Image Source
Starting action: Create Image
Starting image creation process...

Create NetInstall Image

Initiating NetInstall from Restore Media.

created: /Users/LLC/Desktop/20090930_0948/NetRestore of Macintosh HD 1/System.dmg
Checksumming partition of size 63 blocks...done
Catalog file is too fragmented for restore.
Try "fsck_hfs -r" on writeable copy of the image volume
unable to get UDIF info from "/Users/LLC/Desktop/20090930_0948/NetRestore of Macintosh HD 1/System.dmg" - Bad file descriptor.
asr: image scan failed - Bad file descriptor.
Script is done.

NetInstall creation failed.

Image creation process finished...

Stopping image creation.
Image creation failed.

ACTION ATTEMPTED:

$ sudo fsck_hfs -r System.dmg

System.dmg is not a character device

--

Repaired permissions on source, made sure machine running SIU would not go to sleep, same failure.

Bob

2009 iMacs, Mac OS X (10.6.1)

Posted on Sep 30, 2009 12:42 PM

Reply
41 replies

Sep 30, 2009 1:39 PM in response to Bob222

On the phone with Apple. Here's what I've got so far:

sudo fsck_hfs -fry /dev/partitionid (you can get the partition id of the TDM volume in the Disk Utility Get Info window for the volume)

Tried it, but got:

** /dev/rdisk1s2 (NO WRITE)
Executing fsck_hfs (version diskdev_cmds-491~1).
** Verifying volume when it is mounted with write access.
** Checking Journaled HFS Plus volume.
** Checking extents overflow file.
** Checking catalog file.
** The volume Macintosh HD was found corrupt and needs to be repaired.

He then had me run Disk Repair on the source volume (in Target Mode). Disk reported as OK. Re-ran Repair, still said OK.

Re-ran the above fsck command, same failure. He is looking further now.

Sep 30, 2009 3:17 PM in response to codyg

No idea. I've asked our rep and SE to see if they can help in escalating a fix. We've got a lot of clients to image. I will give ASR a try tomorrow, though. I suppose I could look at Deploy Studio as a plan C. Note that the known problem may not affect everyone, so others may be fortunate.

Sep 30, 2009 3:22 PM in response to Bob222

I've just got done making an image with ASR and it seems to be giving the same error:

Catalog file is too fragmented for restore.
Try "fsck_hfs -r" on writeable copy of the image volume
unable to get UDIF info from "/Volumes/LAB.dmg" - Bad file descriptor.
asr: image scan failed - Bad file descriptor.
administrators-MacBook:Volumes administrator$ fsck_hfs -r /Volumes/LAB.dmg
/Volumes/LAB.dmg is not a character device

Sep 30, 2009 10:46 PM in response to codyg

I have no experience with ASR at all. Is what you're describing occurring in a phase in the process following the initial .dmg creation? What the Apple person was suggesting I might try, was to take the dmg image that I did have, and use ASR command/s to try to get to the next phase. If this makes any sense, is that what you tried?

In any case, it is useful to have your report. Apple tried very hard to help me, and I appreciate that; we need to emphasize to them in numbers (and representing the numerous purchased systems we have that are in jeopardy) that this needs resolution ASAP. Thanks.

Oct 1, 2009 8:36 AM in response to Bob222

Yes that is what I did, I created the .dmg with the Disk utility and then used "Scan Image from Restore" and it gave me those errors. I just gave you CLI output because the GUI was not giving me much information as to why it failed.

I have also spent yesterday afternoon getting a DeployStudio server up and running, I uploaded a "Master Image" last night. This morning I tried to restore that image and I got the same exact error message. So it seems that DeployStudio is not a fix for this either. I'm going to keep banging on it, I'll report back if I get anything out of it.

Oct 1, 2009 9:02 AM in response to codyg

There is a "shortcut" in the SIU NetRestore process that will cause it to skip the image creation process if it finds a System.dmg in the folder when it starts. This little bit of functionality should allow you to work around the fragmented catalog issue.

Starting with your fragmented image, the following process should create a non-fragmented image.

hdiutil convert "</path/>System.dmg" -format UDRW "</path/>System-rw.dmg"
hdiutil attach -mount suppressed-shadow "</path/>System-rw.dmg"
(This should return a dev node (e.g. /dev/disk1s2), and the volume will not be mounted)
fsck_hfs -fry /dev/disk1s2
hdiutil detach disk1s2
rm "</path/>System.dmg"
hdiutil convert -format UDZO "</path/>System-rw.dmg" -shadown -o "</path/>System.dmg"
asr imagescan --source "</path/>System.dmg" --filechecksum

Once this is complete, re-run the workflow, using exactly the same information as before. This will cause SIU to "re-create" the image in the same place. It will find the "System.dmg" and skip that portion of the workflow.

Oct 1, 2009 9:07 AM in response to codyg

Thanks for the update! While I am interested in trying Deploy Studio, you have saved me some time by not trying it right now as a workaround.

As an experiment, I reversed the hardware-identical 10.6.1 iMacs and ran the NetRestore process on the setup shipped by Apple, and upgraded to 10.6.1 by me, and had success. So the problem doesn't happen in all cases.

I'm going to try to create a NetBoot image, and using that for now. I don't know enough about what SIU does when creating that image vs. one for NetRestore -- my guess is I may run into the same problem, but I can let the image build while I twiddle my thumbs.

Oct 1, 2009 9:38 AM in response to Brian Nesse

Brian, thank you so much.

I'm puzzled by the following. Perhaps I'm overlooking something, but here goes.

In the log of the successful run of NetRestore Image against the essentially generic iMac ("B", I see:

[…] PackageKit: *Missing bundle Identifier: /Library/Receipts/Office2008 en_automatorworkflow.pkg

... and similar Flip4Mac stuff .pkg.'s in the same directory. Those files do not exist in "B". They exist in the customized iMac "A". There is a System.dmg of "A" in "B", but I don't that that is where those references are being picked up, but I could be wrong.

In SIU, the source is listed as "Macintosh HD 1" ("1" because both machines have the same volume name). It shows up with a firewire icon. But it almost seems like SIU is trying to image itself, which SIU can't do.

Note 2: I apparently spoke too soon about my success. When I open up the NetInstall.dmg image, which presumably is created from the System.dmg, then the latter deleted(?), I don't have any applications, Users, etc. It looks like a stripped down image for booting only.

I'm going to differentiate the volume names just to be sure, try the commands you recommended, imaging "A" (my production iMac), and report back.

Oct 1, 2009 11:07 AM in response to Brian Nesse

sh-3.2# hdiutil attach -mount suppressed /Volumes/LAB-rw.dmg
/dev/disk1 Apple partitionscheme
/dev/disk1s1 Apple partitionmap
/dev/disk1s2 Apple_HFS
sh-3.2# fsck_hfs -fry /dev/disk1s2
** /dev/rdisk1s2
Executing fsck_hfs (version diskdev_cmds-491~1).
** Checking Journaled HFS Plus volume.
** Checking extents overflow file.
** Checking catalog file.
** Rebuilding catalog B-tree.
** The volume Macintosh HD could not be repaired.

At this point I tried to keep going just to see what would happen:

hdiutil convert -format UDZO /Volumes/LAB-rw.dmg -shadow -o /Volumes/LAB-Final.dmg
Preparing imaging engine…
Reading Driver Descriptor Map (DDM : 0)…
(CRC32 $3EB613CD: Driver Descriptor Map (DDM : 0))
Reading Apple (Apple partitionmap : 1)…
(CRC32 $17B7E81B: Apple (Apple partitionmap : 1))
Reading disk image (Apple_HFS : 2)…
..............................................................................
(CRC32 $A4193CAC: disk image (Apple_HFS : 2))
Reading (Apple_Free : 3)…
...............................................................................
(CRC32 $00000000: (Apple_Free : 3))
Adding resources…
...............................................................................
Elapsed Time: 7m 56.679s
File size: 8133363717 bytes, Checksum: CRC32 $C35DCB80
Sectors processed: 21855882, 21840265 compressed
Speed: 22.4Mbytes/sec
Savings: 27.3%
created: /Volumes/LAB-Final.dmg

asr imagescan --source /Volumes/LAB-Final.dmg --filechecksum
Checksumming partition of size 63 blocks...done
Catalog file is too fragmented for restore.
Try "fsck_hfs -r" on writeable copy of the image volume
unable to get UDIF info from "/Volumes/LAB-Final.dmg" - Bad file descriptor.
asr: image scan failed - Bad file descriptor.

Oct 1, 2009 2:37 PM in response to Brian Nesse

hdiutil attach -mount suppressed-shadow "System-rw.dmg"

... returns:

hdiutil: attach: unknown "-mount" argument

I think a space was intended after "suppressed", however:

$ hdiutil attach -mount suppressed -shadow "System-rw.dmg"

... returns:

hdiutil: attach: missing image argument

Message was edited by: Bob222

System Image Utility 2: create NetRestore Image, failure at Preparing Image

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