JoseMartin Posted March 4, 2023 Posted March 4, 2023 (edited) So, I've installed Armbian_23.02.2_Orangepizero2_bullseye_legacy_4.9.318.img on 2 diferent SD cards with same results, I'm not able to figure why they don't run fstab, cron jobs or any other script automatically. I'm mounting a samba share, by command it mounts correctly, this is my fstab entry: //192.168.1.2/Descargas /mnt/Descargas/ cifs uid=1000,gid=1000,guest 0 0 tried _netdev to wait for network and then mount with the same results //192.168.1.2/Descargas /mnt/Descargas/ cifs uid=1000,gid=1000,guest, _netdev 0 0 If I run mount -a it works, tried to add it into root crontab with * * * * /bin/mount -a Still, no results, even schedule reboot doesn't work 30 5 * * * /sbin/shutdown -r I even tried to make an executable script on /etc/network/if-up.d with mount -a on it that was supposed to run after network is up but nothing. I'm no linux expert but not a total newbie either, this has me really stressed, I don´t know if my OS doesn't run any auto script or what is going on, I even tried Armbian_23.02.2_Orangepizero2_jammy_legacy_4.9.318.img today but it doesn´t start, my Opi Zero 2 LED doesn´t turn on even after 20 minutes. Any help or right direction will be apreciated. Thanks in advance Best regards SOLUTION: I had to add sudo before cron commands, I feel so stupid right now, I'm leaving this here if it helps someone 30 5 * * * sudo /sbin/shutdown -r * * * * * sudo /bin/mount -a Edited March 4, 2023 by JoseMartin Solved 0 Quote
b2522 Posted September 6, 2023 Posted September 6, 2023 I used this version Armbian 23.02.0-trunk Bullseye with Linux 5.15.90-flippy-81+o. I solved the crontab problem by this way. 1. create a file under the folder /etc/cron.d/ , such as [ vi /etc/cron.d/rebootvms ] 2. write the crontab job, such as [ 1 1 * * * root /usr/sbin/reboot ] 3. restart the crontab service, [ service crontab restart ] done! 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.