Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. 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

I have a SAM9 based board running embedded linux using buildroot package.

I added the crond and crontab support to busybox from make menuconfig and built the rootfs and flashed it to my board.

The crond and crontab utilities were now present on the board.

I executed the following :

mkdir /var/spool/cron/
mkdir /var/spool/cron/crontabs/
crontab -e

Then added the following in the editor :

* * * * * "harsh" >> /root/harsh.txt

Then executed 'crond' and I was able to see it in the list of processes using 'ps' command.

Also the text line with 'harsh' was appeded to the file every minute.

But the problem is that when I reboot the board the 'cron' directory is deleted from /var/spool/ and the cron process also cannot be started as the cron configuration file itself resides in /var/spool/cron/

How to fix this ?

share|improve this question

migrated from stackoverflow.com Feb 23 '12 at 17:12

This question came from our site for professional and enthusiast programmers.

Is /var on a transient filesystem? Post the output of mount and df /var/spool/. – Gilles Feb 22 '12 at 22:20
It might be helpful to post a link to the docs of the board in question. – Martin Thompson Feb 24 '12 at 10:44

Your Answer


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