You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Mount failure during cronjob

Dear OS X Mountain Lion-users,


Whenever I try to mount my external disk drive automatically via cronjob ...


3710***/usr/sbin/diskutil mount SuperDuperBackup >>/Users/hhe/hhe.log 2>&1


... I receive the following error message:

Volume on disk1s2 failed to mount


However mounting works perfect in the Terminal.


Any hints?


Best regards

Heiko

iMac, OS X Mountain Lion (10.8.1)

Posted on Sep 1, 2012 1:46 AM

Reply
3 replies

Sep 1, 2012 6:28 AM in response to Kivanc Muslu

Hello Kivanc,


Running this command via root cronjob works. But this is no solution for me as I want to run a CopyJob applescript to schedule a "SuperDuper!" backup in my user context. In this script I run the same shell script like above:

do shell script "/usr/sbin/diskutil mount SuperDuperBackup"


This results in the same error message. It used to work in Lion...


Best regards

Heiko

Sep 4, 2012 1:36 AM in response to hhe_muc

I found one hint on this issue in one blog entry of SuperDuper! (http://www.shirt-pocket.com/blog/):


"[...] Basically, Apple is tracking where an application launches from, and seems to be preventing processes that launch from "cron" (one of the system schedulers), even indirectly, from mounting local disk volumes, even when that application is signed."

Mount failure during cronjob

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.