Page 1 of 1

Problem with conecting to Linux shares with the sudo mount -t cifs command.

Posted: Tue Sep 27, 2016 6:13 am
by DrM
When I use the command sudo mount -t cifs //<server>/<share> <mountpoint>, for example sudo mount -t cifs //WinXP/Elements /mnt/network, for connecting the client PC with Linux Mint 17.3 Xfce + samba to a Windows XP share, it is sufficient to use the server's hostname for <server> for connecting my client PC to the server. But when connecting to a Linux Mint 17.3 Samba share with using the hostname for <server>, for example sudo mount -t cifs //mint/Elements /mnt/network, I get the following error message:
Retrying with upper case share name
mount error(6): No such device or address
Both PC have the same workgroup name: workgroup

When I use the server's IP address for <server>, mounting goes fine.

I have already done the following steps on the server, followed by a reboot:

Samba has also been installed on the client.

/etc/samba/smb.conf

Code: Select all

[global]

## Browsing/Identification ###

# Change this to the workgroup/NT-domain name your Samba server will part of
	workgroup = workgroup
	netbios name = mint
	name resolve order = wins bcast host lmhosts

# server string is the equivalent of the NT Description field
	server string = %h server (Samba, Linux Mint)

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable its WINS Server
	wins support = yes
/etc/nsswitch.conf

Code: Select all

hosts: files mdns4_minimal [NOTFOUND=return] dns wins

Code: Select all

sudo apt-get install winbind

sudo apt-get install libnss-winbind

sudo reboot
But after taking these steps above on the Linux Mint 17.3 server, I get still the same error message when I want to connect my client to a Linux share on the server. What must I do to connect my PC to a Linux share with using the server's hostname, in stead of using the server's IP address? Or must I execute these steps above also on the client PCs, or explicitly using the server's IP address when connecting to a Linux share?