I figured out how to mount shares in TC temporarily. Works fine.
But mounting them permanently is tricky. The share is mounted through /etc/fstab and I back /etc/fstab on shutdown/restart but the issue is - how to back up the mount point? I want to back up the directory but none of the contents - they obviously won't fit on the SD card and actually end up crashing filetool.
I found that by putting the commands to create this share mount point in /opt/bootlocal.sh I can create the share mount point each time I boot and give it the appropriate permissions but I can't mount /etc/fstab in bootlocal.sh, i.e. "mount -a" doesn't do anything.
I tried "sudo mount -a", "/usr/bin/mount -a" and even explicitly mounting it here rather than in /etc/fstab, i.e.
which works fine at the CLI once booted but does not mount the share in bootlocal.sh.
Code: Select all
mount -t cifs //[server IP]/[share] /home/[mount point] -o guest,file_mode=0777,dir_mode=0777,noperm,defaults
I tried putting these commands in /opt/bootsync.sh which runs commands before anything else is booted, no difference.
Any pointers as to what I'm doing wrong?