You are not logged in.

#1 2013-08-10 01:49:59

ArgyronMIlk
Member
Registered: 2013-08-10
Posts: 1

Mount error when mounting Windows Server share

Trying to mount a share on a Windows Server I have in my home.
When I use:   

smbclient -L SERVERNAME -U administrator

and I enter the password after the prompt
It returns a list of all the shares in the server like so:

Domain=[SERVERNAME] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Server 2003 5.2]

	Sharename       Type      Comment
	---------       ----      -------
	SHARE1          Disk      Shared folder
	SHARE2          Disk      Shared folder
	SHARE3          Disk      Shared folder

Domain=[SERVERNAME] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Server 2003 5.2]

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------

but when I try to mount of the shares with

# mount -t cifs //SERVERNAME/SHARE1 /mnt/mountpoint -o user=administrator,password=password

it returns an error

mount error: could not resolve address for SERVERNAME: Unknown error

Am I doing something wrong?
Thanks,

Offline

#2 2013-08-10 12:40:01

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,615

Re: Mount error when mounting Windows Server share

the SERVERNAME in these commands is a netbiosname and can differ from the  hostname.
Smbclient seems to use it's own method to resolve netbiosnames, possibly the mount command uses a different method.

Try the mount command with the ip-address of the server instead of SERVERNAME to verify mounting the share works.

If the share can be mounted by //ip-address/SHARE1 , you may need additional options for the mount command to make netbios name resolution work correctly.
check man mount.cifs .

edit : typo's

Last edited by Lone_Wolf (2013-08-10 12:40:47)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

Board footer

Powered by FluxBB