I have the following problem: I have 2 Raspberry Pi in my network and want to mount a directory from my Raspberry Pi 2, running Samba version 4.2.14-Debian to my new Raspberry Pi 4 running Samba version 4.9.5-Debian.
On my Raspberry Pi 2 I defined in /etc/samba/smb.conf
[test]
valid users = pi
guest ok = yes
path = /home/pi/test
writeable = yes
Now I can mount this drive on my Windows 10 PC:
Now I tried on my Raspberry Pi 4 to mount this directory:
$ sudo mount.cifs //192.xxx.yyy.29/home/pi/test /home/pi/test -o user=pi,pass=xyz
but I get always the error message:
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
I played around with the version option and tried all versions from 1.0 to 3.1.1 but no success :(
NTLMv1
auth was disabled. You will need to usev2
. You can specify that in yourmount.cifs
command line as an option after-o
withsec=ntlmssp
. Win10 has also messed with the default auth over the last year. (I don't have details there -- but that should be part of your inquiry as well)/home/pi/test
on the Pi4?