2

I am trying to permanently mount a NAS drive to my raspberry pi (running debian) by adding a line to the file

/etc/fstab

the line is like this:

//192.168.a.real ip/photo/PhotoFrame /home/pi/NAS/photo/PhotoFrame cifs username=jeremy,password=my-real-password,workgroup=WORKGROUP,vers=1.0,users,auto,sec=ntlm,user_xattr 0 0

This gives me the error:

pi@raspberrypi:~ $ sudo mount -a
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
0

I have run into the same problem and what saved me was the first comment from here: https://askubuntu.com/questions/1111328/cifs-mount-problem so, check your ntlm

explicitly in your case instead of:

//192.168.a.real ip/photo/PhotoFrame /home/pi/NAS/photo/PhotoFrame cifs username=jeremy,password=my-real-password,workgroup=WORKGROUP,vers=1.0,users,auto,sec=ntlm,user_xattr 0 0

try

//192.168.a.real ip/photo/PhotoFrame /home/pi/NAS/photo/PhotoFrame cifs username=jeremy,password=my-real-password,workgroup=WORKGROUP,vers=1.0,users,auto,sec=ntlmv2,user_xattr 0 0
New contributor
Vlad is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.
0

I would suggest to write it like this

//192.168.a.real/ip/photo/PhotoFrame /home/pi/NAS/photo/PhotoFrame cifs username=jeremy,password=my-real-password,workgroup=WORKGROUP,vers=1.0,users,auto,sec=ntlm,user_xattr 0 0

(as you have a space between real and ip, not sure if you wanted that?)

and use vers=2.0 at least as 1.0 is deprecated and not safe.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.