This page exists only to provide links to these two log files in an effort to troubleshoot a consistent error on a particular machine. The error message is "hdituil: create failed - error 49168". You can see this error at the entry in ND-backup-hdiutil.log for 1006-01-23 15:43:45.186. A possibly related error is found at 2006-01-23 15:43:45.073 in the same file. The relevant lines read as follows:
2006-01-23 15:43:45.073 diskimages-helper[387] detachTempImageFile: synchronous unmount /dev/disk2 [temp] returned 0x0000C001 (49153)
2006-01-23 15:43:45.186 diskimages-helper[387] detachTempImageFile: synchronous eject /dev/disk2 [temp] returned 0x0000C010 (49168)
2006-01-23 15:43:45.186 diskimages-helper[387] _detachTempImageFile: returning 49168
2006-01-23 15:43:45.188 diskimages-helper[387] performCleanupWithError:49168
G5 iMac
1.80 GHz processor
1 GB RAM
OS 10.4.1 (8B15)
Free Space: 140 GB (approx. 60 GB free on the partition we're working on)
hdiutil create -srcdir -debug "$BACKUPDIR" "$DISKIMAGE" -ov &>"$HDIUTILLOG"
-srcdir = "create disk image from folder ($BACKUPDIR)"
-debug = "generate a very verbose log file"
&>"$HDIUTILLOG" = "send that very verbose log to a local file"
"$DISKIMAGE" = "name/location of the disk image we're creating"
-ov = "overwrite destination disk image, if it already exists"
ND-backup-hdiutil.log [9 MB] ... yes, that says 9 mega-bytes ... this is the log file with the problems. It was created using the "-debug" flag on the "hdiutil create" command.
ND-backup.log ... [4 KB] ... the log generated by the rest of the script. I have changed the user's name to "$USER" in the log file to protect my more-or-less innocent beta-tester.
Link to the thread at forums.macosxhints.com.