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