NFS Mount on Raspberry Pi on Reboot

When I run the mount command from the command line, it works no problem

mount -t cifs -o username=user,password=password,rw //IPofServer/Games /storage/roms/nas

However, after creating and editing an autostart.sh with the following: #!/bin/sh
(sleep 5;
mount -t cifs -o username=user,password=password,rw //IPofServer/Games /storage/roms/nas; )&

mount: can’t find //192.168.1.219/Games in /etc/fstab /storage/.config/autostart.sh: line 2: /storage/roms/nas: Permission denied

If I try to edit /etc/fstab, it only allows Read and I can’t change it

I use OpenELEC’s Mounting Network Shares documentation with systemd and nfs. Works well on LibreELEC-variants!

1 Like