Home Forums Software InstaDMG hdiutil couldn’t unmount my disk

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #375680
    Rusty Myers
    Participant

    I’ve been building images fine since october last year and just this last week, my image creation failed. Here’s what the log says

    10:46:24 ######Creating the deployment DMG and scanning for ASR######
    Rename the deployment volume: InstaDMG
    Create a read-only image
    hdiutil: couldn’t unmount “disk4” – error 49153
    hdiutil: convert failed – File exists
    Scanning image for ASR: ./OutputFiles/09-03-12.dmg
    ASR image scan complete
    10:46:36 ######Cleaning up######
    Ejecting images
    Removing scratch DMG
    10:46:36 ######InstaDMG Complete######

    I thought it may have had something to do with a recent apple update or custom package, so I rolled back to the last working image config. That failed as well.

    I am looking in the /tmp folder right now and I see three versions of the instaDMGMount.* folders. They all are all full images that seem to have been unlinked to the original disk image and stuck!
    I’m not sure I’m using the proper terms to describe the issues, hopefully you can follow what I’m saying.
    They look like alias folders. I tried to eject them, but that’s not an option. Show original takes me to the computer view in finder. Right now I’m rm -R them, but it’s taking a while.
    I know my machine has had some issues with mounted disk images and not ejecting them properly.

    Should I rebuild my image machine? If I delete these folders, do you think I’ll be able to create a new image? Is there something else that the logs point to?

    Thanks
    Rusty

    #375682
    Rusty Myers
    Participant

    I just thought to check activity monitor to see if there was any process stuck that was holding onto the mounts. I force quit three instances of diskimages-helpe (that’s not a misspelling, that’s how it looked in activity monitor) and I was able to delete the old mounts. I’m starting a new image, and hoping it works this time. Although I don’t have much hope for it. I’m thinking about just rebuilding the machine. It’s not a big deal, and in fact I can use my last image to do the job, so it will take little time, but it’s annoying.

    Anyway, that’s my update.

    #375686
    Rusty Myers
    Participant

    Back again.

    I imaged my instadmg machine last night with my last working build. I checked-out the lastest version of instadmg through svn. I copied my base image and custom packages into the new instadmg working folder. I forgot to mention, I am building images on a second internal drive. I store the instadmg folder there with all the packages and output files.

    So, on basically a clean build of instadmg (leoaprd, 10.5.6), with a clean copy of instadmg with all the updates and custom packages that I know worked on my last build, I tried the process again today. While watching it, I noticed that I get the hdiutil error twice. The first time it appears is after installing the base image. It fails to unmount the intermediary disk image. The second time it appears is after the rename of the drive. I’m going to post all of the workflow so that I, hopefully, don’t miss anything useful for diagnosing.

    I am now building an image with only the base image. I have disabled all the base updates and custom packages. We’ll see how that does.

    chm021:~ etcadmin$ sudo /Volumes/TB/InstaDMG/instadmg-read-only/instadmg.bash
    Password:
    07:39:23 ######InstaDMG build initiated######
    07:39:23 ######Mounting Mac OS X installer image######
    Mounting the main OS Installer Disk from: ./InstallerFiles/BaseOS/Mac OS X Install DVD.dmg at: /tmp/instaDMGMount.7dXbVu
    Mac OS X installer image mounted
    07:41:26 ######Creating intermediary disk image######
    Image mounted at /dev/disk3
    Running on PPC Platform: Setting format to APM
    Intimediary image creation complete
    07:41:55 ######Beginning Installation from /tmp/instaDMGMount.7dXbVu######
    I’m running on Leopard or later. Checking for InstallerChoices.xml file
    InstallerChoices.xml file found. Applying Choices
    Installing BaseSystem…..
    Installing Essentials…..
    Installing BSD…..
    Base OS installed
    Compacting and saving cached image to: ./Caches/BaseImageCache/77FC9F69:76393a32d3ca132914acd4e16543f4a71561f650.dmg
    hdiutil: couldn’t unmount “disk3” – error 49153
    Remounting the image with a shadow file (/tmp/instaDMGTemp.R5c9vU.sparseimage)
    07:55:30 ######Beginning Update Installs from ./InstallerFiles/BaseUpdates######
    Installing MacOSXUpdCombo10.5.6.pkg from ./InstallerFiles/BaseUpdates/01
    Installing MacOSXUpdCombo10.5.6…..
    Installing QuickTime76_Leopard.pkg from ./InstallerFiles/BaseUpdates/02
    Installing QuickTime 7…..
    Installing iTunes.mpkg from ./InstallerFiles/BaseUpdates/03
    Installing Apple Mobile Device Support…..
    Installing FrontRowUpdate2.1.6.pkg from ./InstallerFiles/BaseUpdates/04
    Installing Front Row Update…..
    Installing AirPortUtility_Leopard.pkg from ./InstallerFiles/BaseUpdates/05
    Installing AirPort Utility…..
    Installing RemoteDesktopClient.pkg from ./InstallerFiles/BaseUpdates/06
    Installing Apple Remote Desktop Client…..
    Installing iLife ’08.mpkg from ./InstallerFiles/BaseUpdates/07
    Installing Registration…..
    Installing JavaForMacOSX10.5Update2.pkg from ./InstallerFiles/BaseUpdates/08
    Installing JavaForMacOSX10.5Update2…..
    Installing iMovie_710.pkg from ./InstallerFiles/BaseUpdates/09
    Installing iMovie Updater…..
    Installing iPhoto_710.pkg from ./InstallerFiles/BaseUpdates/10
    Installing iPhoto Updater…..
    Installing iWeb_203.pkg from ./InstallerFiles/BaseUpdates/11
    Installing iWeb Updater…..
    Installing GarageBand_411.pkg from ./InstallerFiles/BaseUpdates/12
    Installing GarageBand Updater…..
    Installing iDVD_703.pkg from ./InstallerFiles/BaseUpdates/13
    Installing iDVD Update…..
    Installing GarageBand_412.pkg from ./InstallerFiles/BaseUpdates/14
    Installing GarageBand Updater…..
    Installing iMovie_714.pkg from ./InstallerFiles/BaseUpdates/15
    Installing iMovie Updater…..
    Installing iPhoto_714.pkg from ./InstallerFiles/BaseUpdates/16
    Installing iPhoto Updater…..
    Installing iWeb_204.pkg from ./InstallerFiles/BaseUpdates/17
    Installing iWeb Updater…..
    Installing iPhoto_715.pkg from ./InstallerFiles/BaseUpdates/18
    Installing iPhoto Updater…..
    Installing RAWCameraUpdate.pkg from ./InstallerFiles/BaseUpdates/19
    Installing Digital Camera Raw Compatibility Update…..
    Installing AirPortExtremeUpdate2008004.pkg from ./InstallerFiles/BaseUpdates/21
    Installing AirPortExtremeUpdate2008004…..
    Installing CompatibilityUpdateforQT755.pkg from ./InstallerFiles/BaseUpdates/22
    Installing QuickTime H.264 Compatibility Update…..
    Installing Safari3.2.1Leo.pkg from ./InstallerFiles/BaseUpdates/23
    Installing Safari3.2.1Leo…..
    Installing iLifeMediaBrowser_v2.pkg from ./InstallerFiles/BaseUpdates/24
    Installing iLife Media Browser for Leopard…..
    Installing HewlettPackardPrinterDrivers.pkg from ./InstallerFiles/BaseUpdates/25
    Installing HewlettPackardPrinterDriversPreInstall…..
    08:09:11 ######Beginning Update Installs from ./InstallerFiles/CustomPKG######
    Installing createUser.pkg from ./InstallerFiles/CustomPKG/01
    Installing createUser…..
    Installing Office20081215.pkg from ./InstallerFiles/CustomPKG/02
    Installing Office 2008 1215…..
    Installing AD Password Checker InstaDMG.mpkg from ./InstallerFiles/CustomPKG/03
    Installing adpasscheck…..
    Installing Kidspiration 2.1.pkg from ./InstallerFiles/CustomPKG/04
    Installing kidspiration21…..
    Installing Firefox3.pkg from ./InstallerFiles/CustomPKG/05
    Installing Firefox3…..
    Installing Adobe Reader 9.pkg from ./InstallerFiles/CustomPKG/06
    Installing Adobe Reader 9…..
    Installing VPN.pkg from ./InstallerFiles/CustomPKG/07
    Installing VPN…..
    Installing Inspiration 8.pkg from ./InstallerFiles/CustomPKG/08
    Installing inspiration8…..
    Installing Studiocode.pkg from ./InstallerFiles/CustomPKG/09
    Installing studiocode2549…..
    Installing Comic Life.mpkg from ./InstallerFiles/CustomPKG/10
    Installing Comic Life…..
    Installing Display System Info.pkg from ./InstallerFiles/CustomPKG/11
    Installing Display System Info…..
    Installing TextWranglernoreg.pkg from ./InstallerFiles/CustomPKG/12
    Installing Text Wrangler No Reg…..
    Installing iMovieHD6.pkg from ./InstallerFiles/CustomPKG/14
    Installing iMovie HD…..
    Installing clearReg.pkg from ./InstallerFiles/CustomPKG/15
    Installing clearReg…..
    Installing Stuff It 11.pkg from ./InstallerFiles/CustomPKG/16
    Installing Stuff It…..
    Installing Symantec AntiVirus Installer.mpkg from ./InstallerFiles/CustomPKG/17
    Installing Symantec Shared Frameworks…..
    Installing SPSS 17.0.1.pkg from ./InstallerFiles/CustomPKG/18
    Installing SPSS 17.0.1…..
    Installing tn3270.pkg from ./InstallerFiles/CustomPKG/19
    Installing tn3270…..
    Installing Display Network Info.pkg from ./InstallerFiles/CustomPKG/20
    Installing Display Network Information…..
    Installing Mail Bundle.pkg from ./InstallerFiles/CustomPKG/21
    Installing Mail Bundle…..
    Installing Keychain Minder 1.3.mpkg from ./InstallerFiles/CustomPKG/22
    Installing edu.psuetc.keychainminder…..
    Installing Parallels 3.pkg from ./InstallerFiles/CustomPKG/23
    Installing Parallels 3…..
    Installing System Setup 1.9.mpkg from ./InstallerFiles/CustomPKG/24
    Installing systemsetup…..
    Installing Dell Drivers.pkg from ./InstallerFiles/CustomPKG/25
    Installing Dell Drivers…..
    Installing Notebook 10 with SMART Board Drivers.mpkg from ./InstallerFiles/CustomPKG/26
    Installing Notebook Software 10…..
    Installing SMART Registration COE.pkg from ./InstallerFiles/CustomPKG/27
    Installing SMART Registration COE…..
    Installing SMART Board Drivers 10 Update.mpkg from ./InstallerFiles/CustomPKG/28
    Installing SMART Board Drivers 10…..
    Installing SPSS 17 Auth Package install.pkg from ./InstallerFiles/CustomPKG/29
    Installing SPSS 17 Auth Package install…..
    08:14:37 ######Correcting some generic installer errors######
    Correcting symlinks that point off the disk
    Closing programs that have opened files on the disk
    Deleting Extensions.mkext cache file
    Deleting cache files created during installations
    08:26:37 ######Creating the deployment DMG and scanning for ASR######
    Rename the deployment volume: InstaDMG
    Create a read-only image
    hdiutil: couldn’t eject “disk3” – error 49168
    hdiutil: convert failed – File exists
    Scanning image for ASR: ./OutputFiles/09-03-13.dmg
    ASR image scan complete
    08:26:51 ######Cleaning up######
    Ejecting images
    Removing scratch DMG
    08:26:51 ######InstaDMG Complete######

    #375692
    Rusty Myers
    Participant

    Ok, so I removed all the base updates and custom packages and built an image, that worked. So I decided to add in all the base updates, that worked. I was sure it was a custom package at that point, so I was expecting the image creation to fail after I added all my custom packages back. Nope, it worked fine.

    I am now really stumped, but I don’t care. As long as I’m building images, I’m content. So, if anyone else has this issue, please let me know what you think the problem was, or how you fixed it. Thanks!

    Rusty

    UPDATE

    Well, It looks like the disc image created is not bootable? I restored it to my internal hard drive partition and it wouldn’t show as a boot option in system prefs. So I’m back to removing the updates and testing the base image boot-ability.

    #375710
    knowmad
    Participant

    check these forums (i usually do it and drop a link, but have no time right now) this issue was posted by someone, the fix was (I think) posted as well and was not obvious…. I think.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.

Comments are closed