1 2 3 Previous Next 41 Replies Latest reply: Mar 31, 2010 10:44 AM by mamunoz Go to original post
  • 30. Re: System Image Utility 2: create NetRestore Image, failure at Preparing I
    uzumaki_slug Level 1 Level 1 (0 points)
    Brian,

    I followed your instructions to the t and was able to successfully convert the image to rw format, preform the filesystem check, fix the catalog, convert back to udzo (compressed format), and pass the asr checksum w/o errors. How exactly does the SIU skip the "source image creation" stage? I renamed the image i had to System.dmg but it failed at exactly the same stage with the same error log.

    Here is the output I received in terminal after command completion:
    __

    myserver:FlexImage7.2 root# hdiutil convert "FlexImage7.2.dmg" -format UDRW -o "FlexImage7.2-rw.dmg"
    Reading whole disk (Apple_HFS : 0)…
    ...
    Elapsed Time: 32m 19.965s
    Speed: 78.5Mbytes/sec
    Savings: 0.0%
    created: /private/var/root/Documents/FlexImage7.2/FlexImage7.2-rw.dmg
    myserver:FlexImage7.2 root# hdiutil attach -mount suppressed -shadow "FlexImage7.2-rw.dmg"
    hdiutil: attach: missing image argument
    Usage: hdiutil attach [options] <image>
    hdiutil attach -help
    myserver:FlexImage7.2 root# hdiutil attach -mount suppressed-shadow "FlexImage7.2-rw.dmg"
    hdiutil: attach: unknown "-mount" argument
    Usage: hdiutil attach [options] <image>
    hdiutil attach -help
    myserver:FlexImage7.2 root# hdiutil attach -mount suppressed "FlexImage7.2-rw.dmg"
    /dev/disk2
    myserver:FlexImage7.2 root# fsck_hfs -fry /dev/disk2
    ** /dev/rdisk2
    Executing fsck_hfs (version diskdev_cmds-491~1).
    ** Checking Journaled HFS Plus volume.
    ** Checking extents overflow file.
    ** Checking catalog file.
    ** Rebuilding catalog B-tree.
    ** Rechecking volume.
    ** Checking Journaled HFS Plus volume.
    ** Checking extents overflow file.
    ** Checking catalog file.
    ** Checking multi-linked files.
    ** Checking catalog hierarchy.
    ** Checking extended attributes file.
    ** Checking volume bitmap.
    ** Checking volume information.
    Invalid volume file count
    (It should be 284405 instead of 249070)
    Invalid volume directory count
    (It should be 87292 instead of 75136)
    Invalid volume free block count
    (It should be 37444237 instead of 36755745)
    Volume header needs minor repair
    (2, 0)
    ** Repairing volume.
    ** Rechecking volume.
    ** Checking Journaled HFS Plus volume.
    ** Checking extents overflow file.
    ** Checking catalog file.
    ** Checking multi-linked files.
    ** Checking catalog hierarchy.
    ** Checking extended attributes file.
    ** Checking volume bitmap.
    ** Checking volume information.
    ** The volume MacHD was repaired successfully.
    myserver:FlexImage7.2 root# hdiutil convert -format UDZO "FlexImage7.2-rw.dmg" -shadow -o "FlexImage7.2.dmg"
    Preparing imaging engine…
    Reading whole disk (Apple_HFS : 0)…
    ...............................................................................
    (CRC32 $8E8551D5: whole disk (Apple_HFS : 0))
    Adding resources…
    ...............................................................................
    Elapsed Time: 3m 17.557s
    File size: 4581662317 bytes, Checksum: CRC32 $9E258D31
    Sectors processed: 311909984, 12540465 compressed
    Speed: 31.0Mbytes/sec
    Savings: 97.1%
    created: /private/var/root/Documents/FlexImage7.2/FlexImage7.2.dmg
    myserver:FlexImage7.2 root# asr imagescan --source "FlexImage7.2.dmg" --filechecksum
    Block checksum: ....10....20....30....40....50....60....70....80....90....100
    File checksum: ....10....20....30....40....50....60....70....80....90....100
    asr: successfully scanned image "/private/var/root/Documents/FlexImage7.2/FlexImage7.2.dmg"

    ___

    Note: I initially had my images stored in ~/Documents/, but was unable to get the hdiutil convert -format UDRW command to complete until I isolated the image I was working on in its own directory ( in my case ~/Documents/FlexImage)! In fact I read this thread 4 times and was not made aware of this detail until my colleague pointed it out to me!

    Brian thanks for the info I know we must be close--if only i can make siu recognize the fixed image and skip that initial image creation like you said looks like this is a valid solution!

    Error Log:
    Create NetInstall Image
    Initiating NetInstall from Restore Media.
    created: /Library/NetBoot/NetBootSP800/FlexImage7.2/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 "/Library/NetBoot/NetBootSP800/FlexImage7.2/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.
  • 31. Re: System Image Utility 2: create NetRestore Image, failure at Preparing I
    Brian Nesse Level 4 Level 4 (2,780 points)
    In order to skip the original image creation, SUI needs to find System.dmg in the location that it would otherwise create it.

    Pulling from your log, it looks like you tried to create this:
    -> /Library/NetBoot/NetBootSP800/FlexImage7.2/System.dmg

    Thus, your location was "/Library/NetBoot/NetBootSP800" (really? how did you get that?) and you named the image "FlexImage7.2". To get SIU to "find" your existing image, simply copy it into the "FlexImage7.2" folder and re-run the exact same image build. You'll probably see a message to the effect of "this folder already exists" but that's OK, it won't actually delete it.
  • 32. Re: System Image Utility 2: create NetRestore Image, failure at Preparing I
    Brian Nesse Level 4 Level 4 (2,780 points)
    Here's a little script I wrote to do this... it worked for me.
    The input parameter is the full path to the disk image needing defragmenting.
    The resulting image (defraggedImage.dmg) is built in the same folder.

    ---------
    #!/bin/sh

    output=`hdiutil attach -mount suppressed -shadow /tmp/imageShadow "${1}"`
    theDevice=`echo "$output" | awk '{print}' | grep 'Apple_HFS' | awk '{print $1}'`

    fsck_hfs -fry $theDevice
    hdiutil detach $theDevice

    hdiutil convert -format UDZO "${1}" -shadow /tmp/imageShadow -o "`dirname "${1}"`/defraggedImage"
    rm /tmp/imageShadow
  • 33. Re: System Image Utility 2: create NetRestore Image, failure at Preparing I
    Percy Pricksworth Level 1 Level 1 (0 points)
    Hello,

    I had the same problem as you did with a new MacBook Pro. Partition 1 as my admin and imaging system, partition 2 as the system to be deployed later on other macs. Could it be SIU is very picky about the state of the file system on both partitions?

    My observation: Sometimes Mac OS X just doesn't react at all (black screen for more than 60 seconds beyond my patience. Not as stable as some fanboys make you thing it is). So after a hard reset I booted into console mode with "alt" "cmd+s" of each partition and made a "fsck -fy" and "mount -uw /" to repair both filesystems without a hassle.
    Bam! SIU works.

    Sorry I have to rant: You can say about MS want you want. But at least their deployment utilities are more corporate grade than Apple's. And: Isn't a journaled filesystem main purpose to prevent things like these we have here?
  • 34. Re: System Image Utility 2: create NetRestore Image, failure at Preparing I
    Bob222 Level 1 Level 1 (85 points)
    I just tried again using SIU 10.6.2 (and OS X 10.6.2), and everything appears to have worked. I realize others in this thread may have slightly different issues, but I'm going to mark my question as answered. Thanks for everyone's help.

    Bob
  • 35. Re: System Image Utility 2: create NetRestore Image, failure at Preparing I
    Jesse Cole Level 1 Level 1 (5 points)
    So I was having the same issues as everyone else without any luck with the tips. To make work I used Carbon Copy Cloner to create a dmg of the drive where I built the OS, then mounted the DMG and made the image using SIU from the dmg. What's odd is I wasn't able to make that process work on a client with admin tools, only on the server itself.
  • 36. Re: System Image Utility 2: create NetRestore Image, failure at Preparing I
    Jesse Cole Level 1 Level 1 (5 points)
    Never mind, only worked once and the install wouldn't complete on the machine.
  • 37. Re: System Image Utility 2: create NetRestore Image, failure at Preparing Image
    why a new alias? Level 1 Level 1 (0 points)
    Good morning. I was shown this topic after helping a colleague get past the failure of creating an image with SIU. For weeks I was crashing with the setup below. SIU would fail or even worse my machine with restart in the middle of the process.

    Setup:
    10.6.2 workstation
    System Image Utility 2 10.6.2(439)
    NetBoot/SP0 folder created in the proper place

    Latest image of machine on FW drive with all updates and tweaks that I would like.

    The one variable I changed that I have since been able to create my NetRestore image is I completely removed McAfee virus scan/Spyware/EPO from the machine doing the imaging. Disabling it does not work, as it can't really be disabled, but complete removal has allowed me to make and tweak my NetRetore images as I used to.

    I hope this can help someone.
  • 38. Re: System Image Utility 2: create NetRestore Image, failure at Preparing I
    PuppyStomper Level 1 Level 1 (0 points)
    If this works sir..... You will be my hero.. It wouldn't be the first time McAfee has jacked stuff up with my imaging.... Trying this now..
  • 40. Re: System Image Utility 2: create NetRestore Image, failure at Preparing I
    PuppyStomper Level 1 Level 1 (0 points)
    So, not sure if anyone got this from Apple Support, but here is the workaround they gave me for fsck errors with NetRestore.

    Mount your image machine via firwire, or create a RW .dmg of your image and run the following on it before creating your NetRestore image in System Image Utility.

    The Netrestore issue may be resolved by running the command:
    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)
  • 41. Re: System Image Utility 2: create NetRestore Image, failure at Preparing I
    mamunoz Level 1 Level 1 (0 points)
    10.6.3 Seems to resolve the issues with this.
1 2 3 Previous Next