I'm trying to mount a samba network share on an Ubuntu 14.04 using cifs.
On the server, I've got the share running. I can already map it as a drive in Windows. The share has a username and password.
On the ubuntu machine, i've got /etc/samba/user
where the credentials are saved. I also have the directory where I would mount the share /mounthere
.
I have this on /etc/fstab
//192.168.1.1/sharename /mounthere cifs credentials=/etc/samba/user 0 0
When I do sudo mount -a
I get this error:
mount error(112): Host is down
The host is not down. I've got it running on Windows. I've double checked the credentials and possible firewall issues.
I also have cifs-utils installed.
Can anyboby point me to the right direction.
Thank you!
There are at least three different versions of SMB around. The problem is, when you are just mounting SMB with no further option on the Linux kernel and SMBv1 is disabled on the server, then the server will send a TCP RST packet to the client and this results in the error you mentioned.
Add this option to your entry in the fstab command and check the results:
vers=3.0
This forces the kernel mount to use SMBv3 from the beginning.