I need to run sudo mount -a
after boot since auto mount of the share doesn't happen as needed (/etc/fstab
contains the right code for that ).
How can I do this on Jessie Pixel?
Write a systemd
or init
service that does what you want.
you can also use cron
by running:
sudo crontab -e
Then:
@reboot /my/special/script.sh
Don't forget to chmod
the script (chmod 744
). This should run your script once after reboot.
touch /some/file
let's see if that command is actually gets called; you can also check the logs or just redirect whatever mount
will return to some file and see what's wrong.
Answered in another thread. I is all about timing
https://raspberrypi.stackexchange.com/a/33607/68038