advertisement

Article:
  Automated Backups with Existing Tools
Subject:   Errors
Date:   2004-02-11 07:26:50
From:   jb-
Response to: Errors

It is creating the .dmg properly. HOwever I'm getting these errors

hdiutil: attach failed - No such file or directory

Validating target..."/Volumes/backup_2004-02-10" is not a volume


couldn't validate target - No such file or directory.


When I do an ls the file is there but is sill growing in size and I can see the disk writing (creating the empty disk image). If I wait until the image has been created and then comment out the hdiutil create line it seems to work fine (its running now). I could add a SLEEP NNN line but I'm looking for a cleaner way.

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Errors
    2004-02-11 07:43:45  peterhickman [Reply | View]

    The error makes sense if the hdiutil -create is still running when it attempts to attach the .dmg. If it was still creating it then it is not formated correctly.

    I note that there appears to be a stray pipe '|' character at the end of line 21. Dont know how that got there. Is the pipe in the script you are using?