Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to mount disks in Mountain Lion that works with cron?

The following command works fine from the Terminal:

/usr/sbin/diskutil mount disk1s6

But when executed via my crontab, it fails. My crontab is working fine, otherwise.

I've been using cron to mount my backup disk once a day before I do a smart clone via SuperDuper. (Possibly related... the SuperDuper release notes mention problems mounting drives in Mountain Lion, but I want to emphasize I was mounting drives separately using a shell script and/or cron.)

Any ideas or potential workarounds for this problem?

share|improve this question
How does it fail, do you get any error messages? – patrix Aug 10 '12 at 4:55
It fails silently with no error messages. – Patrick Crowley Aug 10 '12 at 23:32
And you are sure it gets run at all? – patrix Aug 11 '12 at 7:31
Yes, other cron tasks execute properly. – Patrick Crowley Aug 16 '12 at 20:28
I never found a solution for this, so I'm using LaunchAgents (via Lingon 3) instead. Works great! – Patrick Crowley Aug 16 '12 at 20:28

I had this same problem and found that I could get it to work if the cron job was launched under root.

This Apple discussion link has this note:

[...] 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.