I've got an RPI running Ubuntu server 18.04 and have set up a samba server there to share /home/user/sambashare. I used these instructions to get that up and running.
In the same network I have an old computer, also running Ubuntu server 18.04, and I would like to mount that sambashare to /media/share permanently.
I've installed cifs-utils on this old computer and added the following line to the /etc/fstab:
/pi_name/home/user/sambashare /media/share cifs uid=0, credentials=/home/user/.smbcredentials,iocharset=utf8,vers=3.0,nounix 0 0
Of course, .smbcredentials contain the username and password.
But all I get when I try to sudo mount -a
is mount error(2): No such file or directory
I am a Linux novice and I have spent the best part of two days browsing through various tutorials with these subjects, but I can no get this working. Any tips that could put me on the right track?