Results 1 to 3 of 3

Thread: growisofs in cron script

  1. #1
    Join Date
    Jun 2008
    Location
    Windhoek, NAMIBIA
    Posts
    42

    Default growisofs in cron script

    I want to run an unassisted backup at night to DVD+RW media using cron. I run a script containing the line:

    /usr/assist/bin/growisofs -Z /dev/dvd -dvd-compat -J -r -pathspec /aaa/bb/cccc

    When I execute the script from the command line, it runs just fine, and overwrites the media.

    When I kick the same script off in cron, it logs:

    FATAL: /dev/dvd already carries isofs!

    I have tried a few other options, but no luck.

  2. #2
    Join Date
    Jun 2008
    Location
    UTC+10
    Posts
    9,686
    Blog Entries
    4

    Default Re: growisofs in cron script

    Ah yes, I found this out a while back. The man page for growisofs says this:

    If the media already carries isofs and growisofs is invoked with -Z option non-interactively, e.g. through cron, it shall fail with "FATAL:/dev/dvd already carries isofs!" Note that only ISO9660 is recognized, you can perfectly zap e.g. an UDF filesystem non-interactively. Recommendation is to prepare media for unattended usage by re-formatting or nullifying first 64KB in advance.
    The suggested solution is to zap the first 64kB like this:

    Code:
    dd if=/dev/zero count=128 of=/dev/sr0

  3. #3
    Join Date
    Jun 2008
    Location
    Windhoek, NAMIBIA
    Posts
    42

    Default Re: growisofs in cron script

    Thanks ken_yap!

    Briliant!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •