Since I updated my freePBX to version 14.0.5.2 from version13 a short while ago, it seems my cifs NAS share doesn’t mount so my scripts to pass recordings to a long term archive no longer work - or at least they no longer move everything over, but rather just copy it to the mount point where the shared drive should be.
It has taken me a while to realise quit what was happening, but I am not sure how to resolve this.
This is the (generalised) mount line in the /etc/fstab file
//NAS/path/ /mnt/point cifs credentials=/root/credentials.txt,uid=500,rwx,suid 0 0
Obviously there is a matching credentials file
Anyone able to give me an idea of what I might be missing?
Thanks - I’ll give that a try later tonight and get back to you.
In answer to your earlier Qs, its a nix box (freeNAS to be precise, so I freeBSD). I have manually mounted the share (and used the same credentials on a Debian based server, so its probably not the credentials - barring typos of course.
Its definitely a mount issue. I have had no issue with mounting other nix boxes - but I didn’t know about not being able to mount to a point with files already in there - that is the most likely issue as I think the scripts had already copied files to the ‘missing share’ point by the time I went looking in there and messing about… and I’ve only just realised that the reason I couldn’t see them in the shared folder was because the mount point was wrong - I’ve been hunting a privileges issue … yes, I know, the absence should have been a clue but …
Sure you can - the existing local files simply “disappear”. I use this bug/feature all the time to tell me when one of my network drives didn’t mount correctly.
Sorry for the slow reply - I got distracted by a more pressing matter.
Anyway, the manual mount works, but only if the IP address is explicitly used - although the machine name pings quite happily.
This works
mount -t cifs //IPaddress/mount -o username=usr,password=pwd,rw /mnt/mountpoint
I tried both these
//IPaddress/mount /mnt/mountpoint cifs username=usr,password=pwd,rwx 0 0
//IPaddress/mount /mnt/mountpoint cifs credentials=/root/secret.txt,uid=500,rwx 0 0
neither worked.
I know the usr and pwd are correct because they were cut and pasted from the credentials file into a text editor to create the various strings. Clearly I am missing something … but what?