Skip navigation
This discussion is archived

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

21824 Views 41 Replies Latest reply: Mar 31, 2010 10:44 AM by mamunoz RSS
1 2 3 Previous Next
Bob222 Calculating status...
Currently Being Moderated
Sep 30, 2009 12:42 PM
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)
  • codyg Calculating status...
    Any idea when a fix will be issued? Not fun trying to image a new lab with no imaging utility.
  • codyg Level 1 Level 1 (0 points)
    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
  • codyg Level 1 Level 1 (0 points)
    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.
  • Brian Nesse Level 4 Level 4 (2,750 points)
    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.
    Dual 2.5GHz Power Mac G5, Mac OS X (10.6.1)
  • codyg Level 1 Level 1 (0 points)
    sh-3.2# hdiutil attach -mount suppressed /Volumes/LAB-rw.dmg
    /dev/disk1 Applepartitionscheme
    /dev/disk1s1 Applepartitionmap
    /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 (Applepartitionmap : 1)…
    (CRC32 $17B7E81B: Apple (Applepartitionmap : 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.
1 2 3 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (2)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.