Cannot mount Windows share anymore from Debian Linux

8,780

Going by Mounting a Windows computer with two IP addresses, apparently one possible cause for this is that SERVER maps to more than one IP address, possibly on different interfaces (remember that there may be virtual interfaces created). You could check this using nmblookup and as per that post either disable NetBIOS-over-TCP/IP on the second NIC, or just try using the IP address directly.

You may also want to check out Debian bug #654701: cifs-utils: Windows share cannot be mounted anymore after dist-upgrade on wheezy (5.1 -> 5.2) which reports on a seemingly very similar (or perhaps identical) problem after a recent system upgrade bringing in cifs-utils 5.2.

In general, while it isn't unstable, Debian testing is meant for testing. Some breakage is to be expected there, IMO, and part of running it is reporting issues found to the package maintainers so they can be fixed before things make their way to stable. (It's unstable/sid -> testing -> stable.)

Share:
8,780

Related videos on Youtube

Didier Trosset
Author by

Didier Trosset

Updated on September 18, 2022

Comments

  • Didier Trosset
    Didier Trosset almost 2 years

    Since I upgraded my Debian 'testing' with an apt-get dist-upgrade yesterday (Wed Jan 6th 2012), I cannot mount anymore a Windows share.

    The share is still available, as I can connect to it using another Debian 'testing' system that I've not upgraded since end of Nov 2011.

    The share used to be automatically mounted using /etc/fstab and has worked for years.

    //server/share  /xfer  cifs  soft,credentials=/home/user/.smb_cred
    

    What has changed in mount.cifs that disallows this?

    It is not working anymore neither running mount in a root shell, nor using smbclient.

    The error message:

    # mount -t cifs //server/share /mnt -o user=username
    mount error(115): Operation now in progress
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
    #
    
    • user1686
      user1686 over 12 years
      Saying "cannot" is about as useful as telling your doctor "something somewhere hurts". Please give the exact results and error messages if any.
    • Andrew Beals
      Andrew Beals about 12 years
      It's as useful as the "mount error(115): Operation now in progress" error message that mount.cifs is returning, @grawity. It's almost as useful as one of MSFT's $large_hex_number error messages. Errno 115 is well-described at stackoverflow.com/questions/10204134/… by @ gsbabil But, what is REALLY means is "I couldn't contact the host" - one would think that the writers of said code would give a more illuminating error message.
    • Andrew Beals
      Andrew Beals about 12 years
      My guess is that when Didier upgraded, it came with new firewall rules blocking port 445 (and/or 139) were silently added to his linux server's configuration. He should be able to see tcp traffic flow out of his network port towards the windows box. I'd wager that he's not seeing that.
    • user1686
      user1686 about 12 years
      @AndrewBeals: I posted my comment two hours before "Errno 115" was added to the question.
  • Didier Trosset
    Didier Trosset over 12 years
    I did submit the Debian bug today: that's why it is exactly the same issue! Regarding Debian testing, I know. I use it daily, performing upgrades on a regular basis. I've been doing this for years, and don't complain: I know what I'm doing. Just want to understand and fix the issue before it spreads further.
  • Didier Trosset
    Didier Trosset over 12 years
    I've already tried to use the IP address directly. Doesn't work.
  • Didier Trosset
    Didier Trosset over 12 years
    nmblookup reports name_query failed to find name server. I remember our IT guy telling me that NetBIOS had been removed with the latest Windows servers deployment in the last months. But even if it is linked to tho mount not working, note that cifs 5.1 still works on another system.
  • user
    user over 12 years
    @DidierTrosset, my apologies, I'm still not quite used to it being January again!