Using Ubuntu 10.04LTS
Why must I use the IP address to mount a (Win2K3 Svr) network drive using cifs or smbfs?
I have the Windows server in my /etc/hosts file as: my_hostname_which_pings_fine 192.168.1.40
pinging hostname: my_hostname_which_pings_fine returns a solid ping.
WORKS:
Code:
sudo mount -t cifs //192.168.1.40/Photos /media/mnt_club_id_images -o username=replication,password=mypassword
sudo mount -t smbfs //192.168.1.40/Photos /media/mnt_club_id_images -o username=replication,password=mypassword
FAILS:
Code:
sudo mount -t cifs //my_hostname_which_pings_fine/Photos /media/mnt_club_id_images -o username=replication,password=mypassword
sudo mount -t smbfs //my_hostname_which_pings_fine/Photos /media/mnt_club_id_images -o username=replication,password=mypassword
when i run the failing commands at command prompt I get error:
Quote:
mount.cifs kernel mount options: unc=//bst_webserver\Photos,ver=1,rw,username=replication,ip=192.168.1.40,pass=********
mount error(5): Input/output error
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
|
dmesg says:
Quote:
CIFS VFS: cifs_mount failed w/return code = -5
|
Why does the hostname usage fail but the IP Address usage succeeds??