Mount cifs of shared windows folder problem
Finally I got it to work.
I used the ip-address (192.168.1.11) instead of fileserver.
When ping:ing the fileserver name on the client I got ping response from another ip/computer (192.168.1.16) than I got from the host computer (192.168.1.11) !
Don't know why the dns name was linked to wrong ip on the client computer?
Related videos on Youtube
Comments
-
Fam Wired over 1 year
I've some issues with a windows share on Ubuntu 14.04 LTS.
Installed
cifs
utils`:sudo apt-get install cifs-utils
Created mountpoint
sudo mkdir /mnt/temp
Trying to mount a shared folder
sudo mount -t cifs //fileserver/share /mnt/temp -o username=user,password=xxx
My problem is that the console hangs forever. I've waiting several minutes. If I enter wrong user/password it tells me Permission denied.
Update:
Response from Ubuntu Host computer:
nmap -p -v 445 fileserver -P0
host seems down / Filesharing seems to work though!
Ubuntu client computer (Inside vmware):
nmap -p -v 445 fileserver -P0
Host seems down / Filesharing doesn't work!
Maybe a lead: To autorize the fileshare I have to login on the domain.
Any suggestions?
-
Jos over 8 yearsDoes
dmesg | tail
show anything interesting at that point? -
Fam Wired over 8 yearsCIFS VFS: cifs_mount failed w/return code = -112
-
Fam Wired over 8 yearsI'm not sure about this, because I have to ctrl-break the action to be able to continue.
-
David Foerster over 8 yearsPlease edit your question, if you want to add information. Especially file or program output listings (with the help of the
{}
button in the editor toolbar) are much more readable there and overall it's best to have everything relevant in one place. Also, comments may be deleted for various reasons.
-
Fam Wired over 8 yearsThanks. I got nmap response: Host seems down. I'm running this ubuntu inside another ubuntu host (vmware)
-
Fam Wired over 8 yearsI think you have right about the firewall. Do you know how to open the port?
-
Nikolay Nikolov over 8 yearsSo, run
nmap -p 445 fileserver -P0
. 100% this is firewall issue! -
Nikolay Nikolov over 8 yearsIf the machine is windows , go to windows firewall settings. If it is ubuntu , maybe you should stop apparmor
-
Fam Wired over 8 yearsIt works OK on the ubuntu host computer. It's the ubuntu inside the ubuntu that failes.
-
Fam Wired over 8 yearsUbuntu host computer: nmap response 445/tcp host seems down. (but filesharing seems to work) Ubuntu client computer: nmap response 445/tcp host seems down. (filesharing doesn't work) The fileshare is a windows domain. Maybe a lead?
-
Fam Wired over 8 yearsThanks, the net on the virtual machine is bridge configured as you pointed out. It also got a ip-address in the same subnet as the fileserver. :)
-
Eduardo López over 8 yearsYour solution was going to be my next answer :-D Glad you sorted this out.
-
Levente about 3 yearsI believe the right way of going is using the IP address indeed. I will not go to the effort right now to prove it, but I remember reading that the cifs mount utility cannot handle the
//fileserver
notation.