ostridge
Guru
- Joined
- Jan 22, 2015
- Messages
- 1,636
- Reaction score
- 523
Crontab for a nightly reboot fails due to dirty bit
I tried a crontab -e code below - to do a nightly reboot
Problem is that fsck is called by the /etc/init.d/reboot script; such that the fsck check fails due to the dirty bit being set and fsck fails to fix it, but opens a Maintenance shell that requires human input to fix the problem (at 4am?) and then to exit with ctrl+D to allow the restart to continue.
I found that when I burnt raspbian8 jessie image to sdb, the dirty bit was set in the burned image. which prevented a crontab reboot. That asside this also happens with a dirty bit on Rpi /dev/mmcblk0p1
Ayone know how I stop the Maintenance shell opening?
I tried a crontab -e code below - to do a nightly reboot
Code:
0 4 * * * /usr/local/sbin/reboot
I found that when I burnt raspbian8 jessie image to sdb, the dirty bit was set in the burned image. which prevented a crontab reboot. That asside this also happens with a dirty bit on Rpi /dev/mmcblk0p1
Ayone know how I stop the Maintenance shell opening?