[Solved] error while mounting windows share on linux

Hi whan i am trying to mount a windows share on linux i received the following error can some one help me with thsi

 
[root@redhat-testpc /]# mount -t cifs \\\\servername\testdata -o username=xw27,password=*es*feed /test
Mounting the DFS root for a particular server not implemented yet
No ip address specified and hostname not found

Not sure about the 1st line, but it seems something is not built into this software yet. Anyway, the 2nd simply tells that it can't find the other host. Try to get a ping working to this host at least by using it's IP-address or by ensuring that the name is being resolved.

hi zaxxon i made a entry in /etc/hosts

i can ping the server and trace route to the windows fine

Could it be it has problems with the server and share syntax? I found this:
Linux mount CIFS Windows Share
and they use slashes instead of backslashes. Not sure, have nothing to test here but worth a try maybe.

let us assume ip is 192.168.1.5 and i is the drive on windows machine which is shared (right click on windows and share it)
once try this

mount -t cifs //192.168.1.5/i -o username=<login name>,password=password  /mnt/windows/ 

its resolved

 
mount -t cifs \\\\servername\testdata -o username=abcd/domain.com,password=*es*feed /test