Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

[Samba] mount_smbfs can't get server address 1

Status
Not open for further replies.

benp07

Technical User
Aug 31, 2001
87
US
i am running freebsd 4.6.2
i am using this command to mount a windows share from windows xp
mount_smbfs //user@server/share_name /path/to/mountpoint
and everytime i get this message
mount_smbfs: can't get server address: ssyerr = operation timed out
i have also tried this command
mount -t smbfs //user@server/share_name /path/to/mountpoint
and get the same message

can any one give me some ideas to try
thanks alot
Ben
 
Can your servers ping each other by hostname and/or IP address? If they can, then try this...

mount -t smbfs -o username=someuser //server/share /mntpoint



 
thanks for responding

from the windows box i can ping the freebsd box by using the host name (ping freebsd) and it will ping using the ip of the unix box

but from the freebsd box i can ping with the ip of the windows box but cant ping with the name of the windows box
(ping windows) will not work under freebsd

when i try the command you gave me it says
-o username option not supported

i am running nat with ipfilter on my freebsd box would that cause a pronblem if so what should i do to fix it
i can get to the shares fine from the windows box
and from freebsd i can smbclient -L (windowsname)
and see that shares that are of the windows machine

thanks for your help







 
Well, I don't know FreeBSD. That option works in Linux. You'll probably have to check the man page for mount on your FreeBSD box.

For the name resolution problem, try adding the name of the Windows box to the /etc/hosts file. You can also try using the mount command with the -o ip=ipaddr option (if available on FreeBSD)...

mount -t smbfs -o ip=1.2.3.4 //winserver/share /mntpoint



ChrisP
 
thanks
i added the windows box to my /etc/hosts file and i can now
ping the windows box (ping windowsname)
is there something that i have to do to samba to look at the /etc/hosts file
i am still getting the time out error

thanks alot for your help

Ben
 
If this is still a name resolution problem, try using the lmhosts file too. It should be in the same directory as your smb.conf file.



What version of Samba are you running? Does this problem happen with all shares you try to connect to?

What is 'ssyer' that you mentioned above?


ChrisP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top