Find the answer to your Linux question:
Results 1 to 6 of 6
Having problems auto mounting a CIFS share. These are the errors I get from the kern.log: 20.718374] CIFS VFS: Error connecting to socket. Aborting operation [ 20.718377] CIFS VFS: cifs_mount ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2011
    Posts
    3

    CIFS VFS: cifs_mount failed w/return code = -101


    Having problems auto mounting a CIFS share. These are the errors I get from the kern.log:
    20.718374] CIFS VFS: Error connecting to socket. Aborting operation
    [ 20.718377] CIFS VFS: cifs_mount failed w/return code = -101

    and here is the fstab entry:
    //10.10.1.11/music /rob_diskstation/mnt cifs _netdev,,credentials=/home/randellr/.smbcredentials,uid=1000 0 0
    I can mount the share manually...I am I missing something?
    Any help would be appreciated.

    Thanks.

  2. #2
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,639
    I don't understand why you have an empty option in the fstab entry (the dual ,, entry):


    //10.10.1.11/music /rob_diskstation/mnt cifs _netdev,,credentials=/home/randellr/.smbcredentials,uid=1000 0 0

    should be (I think)


    //10.10.1.11/music /rob_diskstation/mnt cifs _netdev,credentials=/home/randellr/.smbcredentials,uid=1000 0 0
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  3. #3
    Just Joined!
    Join Date
    May 2011
    Posts
    3
    Rubberman...Thanks for the reply. The extra comma in the fstab was a typo. I removed it but the results were the same. Any other suggestion would be greatly appreciated. BTW I'm using 11.04 if that helps.


  4. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    Location
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    Posts
    11,639
    Sorry. My latest Ubuntu is 10.10. I'm not brave enough to try 11.04 yet, other than in a virtual machine (when I get around to it).
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

  5. #5
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,756
    You have a socket error...and are trying to mount a network share at bootup...but can mount it after the system boots without a problem.

    => The network is likely not available yet when this mount is attempted.

    You may need to delay the mount - possibly put the mount command in the /etc/rc.local file which should run after the "runlevel" is reached.

  6. #6
    Just Joined!
    Join Date
    May 2011
    Posts
    3
    HROAdmin26 thanks for your help in this matter. Mounting the share drive using the /etc//rc.local file seems to work well and solves my boot problem.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •