Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

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

This is a refinement of a question I asked yesterday, the product of deeper research I have done since.

The script that starts CrashPlan has, as it should, a hard dependency on $local_fs in its LSB Required-Start entry. The problem is coming about when this dependency is satisfied without the USB volume being mounted. Therefore CrashPlan thinks it has to create its backup destination and the conflicts begin.

My understanding of $local_fs is that everything in mtab will be mounted before it is satisfied. Is that not the case? Are there options I can add to the mtab entry to change this behavior for the volume in question?

share|improve this question
up vote 2 down vote accepted

If I recall correctly, USB drives are mounted by udev after virtual-filesystems (an Upstart signal), not as part of $local_fs.

So one solution is a bug against CrashPlan - it's assuming the drive you want to backup is not USB.

A workaround is to change the dependency (or to add a second) is the CrashPlan init script.

Another (easier) workaround is to add a 'sleep 60' or other pause to the CrashPlan init script. Or to simply renumber the symlinks so they run later.

share|improve this answer
I am trying so hard not to modify the CrashPlan script but I am starting to see how difficult that will be. Looks like the simplest thing will be to add $all as a dependency just until they fix their bug. – DavidF Dec 2 '11 at 20:44
<*sigh*> CrashPlan support said, Modify the script. – DavidF Dec 7 '11 at 18:46

Upstart should be able to handle this if you convert to a standard upstart script. I've tried the following, but not had any success so far.. perhaps it's a start of an answer though...

  1. read
  2. disable /etc/init.d/crashplan
  3. create /etc/init/crashplan.conf with content similar to the following:

    description "crashplan on usbhdd" author ""

    start on mounted MOUNTPOINT=/media/USB-HDD stop on runlevel [016]

    pre-start script /usr/local/crashplan/bin/CrashPlanEngine start end script

    post-stop script /usr/local/crashplan/bin/CrashPlanEngine stop end script

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.