Posts: 137
Joined: Mon Dec 02, 2013 7:56 pm

Broken NAS connection

Tue May 05, 2015 12:10 pm

I have several SD cards and tend to use each one for a specific program. Each one has a copy of an executable file "./nas" in the pi folder which when run as "sudo ./nas" connects to my NAS drive on my network.
The format is:-

Code: Select all

mount -t cifs -o guest // /home/pi/nasdrive
I recently updated (apt-get update and apt-get upgrade) one of the cards and now when I run "./nas" I get an error "mount error(13): Permission denied". The file still executes correctly on the cards that haven't been updated recently.
I apologise if this has already been dealt with in the Forum, I have trawled through endless posts and Googles but haven't found an answer. I would be grateful if some kind person could point me in the right direction.

User avatar
Posts: 36159
Joined: Sun Jun 16, 2013 11:19 pm
Location: Basingstoke, UK
Contact: Website Twitter

Re: Broken NAS connection

Tue May 05, 2015 12:33 pm

Why not do that NAS mount in /etc/fstab?

Also if your NAS can do NFS (rather than CIFS) you'll find the security stuff is easier.
Note: Having anything humorous in your signature is completely banned on this forum. Wear a tin-foil hat and you'll get a ban.

Any DMs sent on Twitter will be answered next month.

This is a doctor free zone.

Return to “General discussion”