LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2014, 07:13 AM   #1
Johnnie.it
Member
 
Registered: Nov 2009
Posts: 32

Rep: Reputation: 15
Mount error 115 on some shares


Hi there guys,

I hope you can help me with a small issue that is kinda driving me crazy.
I'm running debian wheezy on a virtual machine and trying to mount some shares from the win8.1 host.
The lines I put in the /etc/fstab are:
Code:
//192.168.0.10/dir1 /home/user/dir1 cifs credentials=/root/.secret.pwd,uid=1000,gid=1000,file_mode=0777,dir_mode=0777,iocharset=utf8,sec=ntlm 0 0
//192.160.0.10/dir2 /home/user/dir2 cifs credentials=/root/.secret.pwd,uid=1000,gid=1000,file_mode=0777,dir_mode=0777,iocharset=utf8,sec=ntlm 0 0
//192.160.0.10/dir3 /home/user/dir3 cifs credentials=/root/.secret.pwd,uid=1000,gid=1000,file_mode=0777,dir_mode=0777,iocharset=utf8,sec=ntlm 0 0
The first share gets mounted correctly, but not the other two.
This is the output I get when sudo-ing a mount -a:
Code:
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
mount error(115): Operation now in progress
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)
and this is what /var/log/syslog shows:
Code:
Mar 24 12:56:12 hostname kernel: [ 1887.029043] CIFS VFS: Error connecting to socket. Aborting operation
Mar 24 12:56:12 hostname kernel: [ 1887.030013] CIFS VFS: cifs_mount failed w/return code = -115
Mar 24 12:56:22 hostname kernel: [ 1897.052130] CIFS VFS: Error connecting to socket. Aborting operation
Mar 24 12:56:22 hostname kernel: [ 1897.053885] CIFS VFS: cifs_mount failed w/return code = -115
The same happens at boot time.

Now, the crazy thing is that if I run manually a:
Code:
sudo mount //192.168.0.10/dir2 /home/user/dir2 -t cifs -o credentials=/root/.secret.pwd,uid=1000,gid=1000
it works perfectly.

Now, I'm no power user, but I thought I'd be able to manage a couple of simple cifs shares...but then again I guess not
So, my questions so far are:
1. how the heck do I make that work?
2. why is it not working? Might be the security? Should I choose perhaps ntlmv2? I read a bit around but I don't know this kind of security mechanisms, so...
3. why on earth is the first mount working just like a charm and not the other two?

You know what? I'm trying now to remove the sec option from the fstab, and see how that works out.

In the meantime, if anyone could lend a hand I'd appreciate it very much
 
Old 03-24-2014, 09:11 AM   #2
Johnnie.it
Member
 
Registered: Nov 2009
Posts: 32

Original Poster
Rep: Reputation: 15
AAAALlllright. How can I get a mod to delete this thread?
This is just too embarassing

Solved, by the way.
Thanks everybody who took the time to even read it.
 
Old 03-16-2015, 10:31 AM   #3
ibiza82
LQ Newbie
 
Registered: Mar 2015
Posts: 1

Rep: Reputation: Disabled
Smile thx

So nice of you to post the solution
 
Old 05-13-2015, 05:14 PM   #4
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
Actually, could you post your solution? I'm having issues with mounting my CIFS shares, and I can't see anything "obviously wrong" with your fstab entries.

EDIT: Found OP's problem. He mis-typed the IP addresses in the second and third entries. Which is not the problem I'm having. So I'll start a new thread.

Last edited by maples; 05-13-2015 at 05:18 PM.
 
1 members found this post helpful.
Old 02-03-2016, 10:11 AM   #5
xzatech
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: 0
Unhappy How did you solve it

How did you solve it?/
 
Old 02-07-2016, 12:39 PM   #6
desiagui
LQ Newbie
 
Registered: Feb 2016
Posts: 1

Rep: Reputation: Disabled
Not sure how he solved it but I was having the same issue. I had it working but had to reinstall and then was having the issue. My fstab entry looks like this:

//servera/Movies /media/Movies cifs credentials=/home/linuxuser/.smbcredentials,iocharset=utf8,sec=ntlm 0 0

Turns out the new system did not have servera in the hosts file. Just adding an entry for it did it
 
Old 02-10-2016, 08:12 PM   #7
Tim Abracadabra
Member
 
Registered: May 2014
Location: USA, Wherever I may Roam
Distribution: debian 9.8 w/GNOME and KDE dual boot w/Win 10.| debian 7.11 w/Xfce, LFS 7.9, + Multi-boot w/Windows7
Posts: 122

Rep: Reputation: Disabled
Not sure how it was resolved either but .. looking considering the error connecting to socket and
noting that the IP address of the first mount that works is different than the IP address of the
two failed mounts, I suspect the IP address for those two was wrong ;-)
 
Old 02-10-2016, 11:43 PM   #8
Tim Abracadabra
Member
 
Registered: May 2014
Location: USA, Wherever I may Roam
Distribution: debian 9.8 w/GNOME and KDE dual boot w/Win 10.| debian 7.11 w/Xfce, LFS 7.9, + Multi-boot w/Windows7
Posts: 122

Rep: Reputation: Disabled
err, revived necro thread, just noticed. + to maples!
 
Old 12-11-2016, 03:37 AM   #9
Damascus01
LQ Newbie
 
Registered: Dec 2016
Posts: 1

Rep: Reputation: Disabled
Oh dear, I had a similar embarrassing mistake...

I had 2 of my 3 remote shares mounting but couldn't get my share at //10.1.1.5 to mount for the life of me.

Then I realised my remote folder was actually at //10.1.1.4


Last edited by Damascus01; 12-11-2016 at 03:38 AM.
 
Old 04-08-2017, 06:47 PM   #10
ntsagkas
LQ Newbie
 
Registered: Apr 2017
Posts: 1

Rep: Reputation: Disabled
Make sure the remote mount address does not resolve to an IPv6 address but to an IPv4 one. It took me a while to solve this one by adding a manual IPv4 entry to /etc/hosts. Not sure if the IPv6 mount.cifs problem was something on my system setup or something more general
 
Old 02-21-2019, 03:19 PM   #11
Spelevink
LQ Newbie
 
Registered: Feb 2019
Posts: 1

Rep: Reputation: Disabled
Sorry for revisiting this, but I have struggled all morning and had the exact same issues with the exact same solution

i had typo-ed the share ip address to '192.167.11.55' instead of the correct '192.168.11.55'
 
Old 05-27-2021, 03:54 PM   #12
timblaktu
LQ Newbie
 
Registered: May 2021
Posts: 2

Rep: Reputation: Disabled
Lightbulb The most stable and persistent way to mount network (cifs) shares

A co-worker sent me this link, and I'm a little confused about where the actual solution is posted above, so I'll post my solution:

On some older systems, adding `_netdev` mount option might fix the issue. `_netdev` is supposed to delay the mount until after the network connects.

However, in our case, we're using Debian Buster, which like many modern linux systems uses Systemd. The proper solution for modern systemd systems is to use options `noauto,x-systemd.automount` which will:
* NOT mount the network drive boot
* mount the drive at first access

This is the most fault-tolerant way to mount network shares in a systemd system, because systemd.mount takes care of managing the dependencies that network mounts have, and can ensure the mount will not be attempted until it is most likely to succeed.

Enjoy!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
I'm working with symlinks with mount command to mount remote shares lhorace Linux - Newbie 1 11-21-2009 04:05 PM
DFS shares - can mount shared folder, but no access - error "object is remote" gbloon Linux - Networking 6 08-20-2009 05:18 PM
Can't mount shares with Linux leupi Linux - Networking 11 01-21-2007 02:01 PM
OS Error 115: Operation is in progress pomalley Linux - General 0 02-08-2004 01:04 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration