Mount cifs of shared windows folder problem

8,407

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?

Share:
8,407

Related videos on Youtube

Fam Wired
Author by

Fam Wired

Developer

Updated on September 18, 2022

Comments

  • Fam Wired
    Fam Wired over 1 year

    I've some issues with a windows share on Ubuntu 14.04 LTS.

    1. Installed cifsutils`:

      sudo apt-get install cifs-utils
      
    2. Created mountpoint

      sudo mkdir /mnt/temp
      
    3. 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
      Jos over 8 years
      Does dmesg | tail show anything interesting at that point?
    • Fam Wired
      Fam Wired over 8 years
      CIFS VFS: cifs_mount failed w/return code = -112
    • Fam Wired
      Fam Wired over 8 years
      I'm not sure about this, because I have to ctrl-break the action to be able to continue.
    • David Foerster
      David Foerster over 8 years
      Please 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
    Fam Wired over 8 years
    Thanks. I got nmap response: Host seems down. I'm running this ubuntu inside another ubuntu host (vmware)
  • Fam Wired
    Fam Wired over 8 years
    I think you have right about the firewall. Do you know how to open the port?
  • Nikolay Nikolov
    Nikolay Nikolov over 8 years
    So, run nmap -p 445 fileserver -P0. 100% this is firewall issue!
  • Nikolay Nikolov
    Nikolay Nikolov over 8 years
    If the machine is windows , go to windows firewall settings. If it is ubuntu , maybe you should stop apparmor
  • Fam Wired
    Fam Wired over 8 years
    It works OK on the ubuntu host computer. It's the ubuntu inside the ubuntu that failes.
  • Fam Wired
    Fam Wired over 8 years
    Ubuntu 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
    Fam Wired over 8 years
    Thanks, 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
    Eduardo López over 8 years
    Your solution was going to be my next answer :-D Glad you sorted this out.
  • Levente
    Levente about 3 years
    I 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.