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.

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • 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?
    • Errors
      2004-02-11 08:03:43  jb- [Reply | View]

      Apparently it is a result of the stray pipe. I took it out, changed the 5 to a 20 and the script seems to be running happily. It is taking upwards of five minutes to create the .dmg (70GB on a Firewire 400 drive) - should it be a different format?