mount.cifs fails with mount error(2): No such file or directoryCIFS client behaving as root on serverCannot mount remote drive. I get the error: mount.cifs: bad UNC (/servername//data.xxx.xxx.ac.uk/)cifs mount fails with “mount error(112): Host is down”cifs mount returns input/output error on frequent file readLinux SMB file share setup issuesmount.cifs gives me “mount error: cifs filesystem not supported by the system”Creating directory on cifs mount returns error, but directory is indeed created

Why was the DC-9-80 so successful despite being obsolete almost from birth?

Can anyone give me feedback this encryption program?

If Space Shuttle flies "like a brick", why does it need the wings?

How did we arrive at Major/Minor tonality, and why did we settle on it?

Am I being run backwards?

Differences of latch and lock

How do I experimentally measure the surface area of a rock?

Simplify makes Mathematica forget that a matrix is Hermitian

How to manage publications on a local computer

In a topological space, if a subset is both closed and open then is the toplogy discrete?

Why does nobody understand the grapple rules?

Doubt on pronunciation of verbs (stressing)

Shoe shine shop model in Rust

What is the maximum number of squares 8 queens and 8 nightriders can attack on a 16x16 board?

Who is this famous person?

How can kinetic energy increase during a collision?

Equality operator does not get defined for a custom spaceship operator implementation in C++20

About an ambiguity that really prevents me from understanding the principle " the laws of physics are invariant in all inertial frames"

Was there a clearly identifiable "first computer" to use or demonstrate the use of virtual memory?

Driving distance between O'Hare (ORD) and Downtown Chicago is 20.5 mi and 1H 17min?

Why do Muslim refugees seek asylum in Europe and not in rich countries in the Middle East?

What is my volume?

Unexpected Code Coverage Reduction

I need a mindmap on latex that have children that begot children



mount.cifs fails with mount error(2): No such file or directory


CIFS client behaving as root on serverCannot mount remote drive. I get the error: mount.cifs: bad UNC (/servername//data.xxx.xxx.ac.uk/)cifs mount fails with “mount error(112): Host is down”cifs mount returns input/output error on frequent file readLinux SMB file share setup issuesmount.cifs gives me “mount error: cifs filesystem not supported by the system”Creating directory on cifs mount returns error, but directory is indeed created






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1

















Mounting a samba share (from linux samba server) is not possible from shell on fresh kubuntu 19.04 installation



root@client:~# mount -t cifs -o user=myuser //myserver/myshare /home/user/myserver/myshare/
Password for myuser@//myserver/myshare: *****
mount error(2): No such file or directory
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


But the share, mountpoint and user (credentials) exist and are correct:



smbclient -L myserver -U mygroup\myuser
Enter MYGROUPMYUSER's password:

Sharename Type Comment
--------- ---- -------
myshare Disk
[...]

~# ls -al /home/user/myserver/myshare/
insgesamt 8
drwxrwxrwx 2 user user 4096 Jul 30 19:21 .
drwxrwxr-x 3 user user 4096 Jul 30 19:21 ..


I can also open the share in e.g. dolphin with smb:// protocol
This used to work for years now with previous ubuntu versions.



client system:



~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 19.04
Release: 19.04
Codename: disco

~# uname -a
Linux mypc 5.0.0-21-generic #22-Ubuntu SMP Tue Jul 2 13:27:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


installed packages (from apt log):



install cifs-utils:amd64 <keine> 2:6.8-2
install keyutils:amd64 <keine> 1.6-6
install samba-common:all <none> 2:4.10.0+dfsg-0ubuntu2.2
install smbclient:amd64 <keine> 2:4.10.0+dfsg-0ubuntu2.2


Server samba version:



~# smbd --version
Version 3.6.25









share|improve this question
































    1

















    Mounting a samba share (from linux samba server) is not possible from shell on fresh kubuntu 19.04 installation



    root@client:~# mount -t cifs -o user=myuser //myserver/myshare /home/user/myserver/myshare/
    Password for myuser@//myserver/myshare: *****
    mount error(2): No such file or directory
    Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


    But the share, mountpoint and user (credentials) exist and are correct:



    smbclient -L myserver -U mygroup\myuser
    Enter MYGROUPMYUSER's password:

    Sharename Type Comment
    --------- ---- -------
    myshare Disk
    [...]

    ~# ls -al /home/user/myserver/myshare/
    insgesamt 8
    drwxrwxrwx 2 user user 4096 Jul 30 19:21 .
    drwxrwxr-x 3 user user 4096 Jul 30 19:21 ..


    I can also open the share in e.g. dolphin with smb:// protocol
    This used to work for years now with previous ubuntu versions.



    client system:



    ~# lsb_release -a
    No LSB modules are available.
    Distributor ID: Ubuntu
    Description: Ubuntu 19.04
    Release: 19.04
    Codename: disco

    ~# uname -a
    Linux mypc 5.0.0-21-generic #22-Ubuntu SMP Tue Jul 2 13:27:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


    installed packages (from apt log):



    install cifs-utils:amd64 <keine> 2:6.8-2
    install keyutils:amd64 <keine> 1.6-6
    install samba-common:all <none> 2:4.10.0+dfsg-0ubuntu2.2
    install smbclient:amd64 <keine> 2:4.10.0+dfsg-0ubuntu2.2


    Server samba version:



    ~# smbd --version
    Version 3.6.25









    share|improve this question




























      1












      1








      1


      1






      Mounting a samba share (from linux samba server) is not possible from shell on fresh kubuntu 19.04 installation



      root@client:~# mount -t cifs -o user=myuser //myserver/myshare /home/user/myserver/myshare/
      Password for myuser@//myserver/myshare: *****
      mount error(2): No such file or directory
      Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


      But the share, mountpoint and user (credentials) exist and are correct:



      smbclient -L myserver -U mygroup\myuser
      Enter MYGROUPMYUSER's password:

      Sharename Type Comment
      --------- ---- -------
      myshare Disk
      [...]

      ~# ls -al /home/user/myserver/myshare/
      insgesamt 8
      drwxrwxrwx 2 user user 4096 Jul 30 19:21 .
      drwxrwxr-x 3 user user 4096 Jul 30 19:21 ..


      I can also open the share in e.g. dolphin with smb:// protocol
      This used to work for years now with previous ubuntu versions.



      client system:



      ~# lsb_release -a
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 19.04
      Release: 19.04
      Codename: disco

      ~# uname -a
      Linux mypc 5.0.0-21-generic #22-Ubuntu SMP Tue Jul 2 13:27:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


      installed packages (from apt log):



      install cifs-utils:amd64 <keine> 2:6.8-2
      install keyutils:amd64 <keine> 1.6-6
      install samba-common:all <none> 2:4.10.0+dfsg-0ubuntu2.2
      install smbclient:amd64 <keine> 2:4.10.0+dfsg-0ubuntu2.2


      Server samba version:



      ~# smbd --version
      Version 3.6.25









      share|improve this question















      Mounting a samba share (from linux samba server) is not possible from shell on fresh kubuntu 19.04 installation



      root@client:~# mount -t cifs -o user=myuser //myserver/myshare /home/user/myserver/myshare/
      Password for myuser@//myserver/myshare: *****
      mount error(2): No such file or directory
      Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)


      But the share, mountpoint and user (credentials) exist and are correct:



      smbclient -L myserver -U mygroup\myuser
      Enter MYGROUPMYUSER's password:

      Sharename Type Comment
      --------- ---- -------
      myshare Disk
      [...]

      ~# ls -al /home/user/myserver/myshare/
      insgesamt 8
      drwxrwxrwx 2 user user 4096 Jul 30 19:21 .
      drwxrwxr-x 3 user user 4096 Jul 30 19:21 ..


      I can also open the share in e.g. dolphin with smb:// protocol
      This used to work for years now with previous ubuntu versions.



      client system:



      ~# lsb_release -a
      No LSB modules are available.
      Distributor ID: Ubuntu
      Description: Ubuntu 19.04
      Release: 19.04
      Codename: disco

      ~# uname -a
      Linux mypc 5.0.0-21-generic #22-Ubuntu SMP Tue Jul 2 13:27:33 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux


      installed packages (from apt log):



      install cifs-utils:amd64 <keine> 2:6.8-2
      install keyutils:amd64 <keine> 1.6-6
      install samba-common:all <none> 2:4.10.0+dfsg-0ubuntu2.2
      install smbclient:amd64 <keine> 2:4.10.0+dfsg-0ubuntu2.2


      Server samba version:



      ~# smbd --version
      Version 3.6.25






      samba 19.04 cifs






      share|improve this question














      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 30 at 18:10









      PeterPeter

      131 silver badge5 bronze badges




      131 silver badge5 bronze badges























          1 Answer
          1






          active

          oldest

          votes


















          2


















          This is just a guess because I don't remember what the default settings were on Samba 3.6 but I think CIFS is trying to mount with an smb dialect that that version of samba didn't have yet.



          Add the parameter vers=1.0 or maybe vers=2.0 to your list and see if you can connect:



          mount -t cifs -o user=myuser,vers=1.0 //myserver/myshare /home/user/myserver/myshare/


          EDIT: You may have to drop down the security level as well with another parameter: sec=ntlm






          share|improve this answer























          • 1





            Perfect! The "vers=1.0" did it! Fun fact: I recently had to specify version 3.0 to mount a windows server 2019 share from linux... anyway, that error message is a real cheek!

            – Peter
            Jul 30 at 23:10












          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );














          draft saved

          draft discarded
















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1162199%2fmount-cifs-fails-with-mount-error2-no-such-file-or-directory%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown


























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2


















          This is just a guess because I don't remember what the default settings were on Samba 3.6 but I think CIFS is trying to mount with an smb dialect that that version of samba didn't have yet.



          Add the parameter vers=1.0 or maybe vers=2.0 to your list and see if you can connect:



          mount -t cifs -o user=myuser,vers=1.0 //myserver/myshare /home/user/myserver/myshare/


          EDIT: You may have to drop down the security level as well with another parameter: sec=ntlm






          share|improve this answer























          • 1





            Perfect! The "vers=1.0" did it! Fun fact: I recently had to specify version 3.0 to mount a windows server 2019 share from linux... anyway, that error message is a real cheek!

            – Peter
            Jul 30 at 23:10















          2


















          This is just a guess because I don't remember what the default settings were on Samba 3.6 but I think CIFS is trying to mount with an smb dialect that that version of samba didn't have yet.



          Add the parameter vers=1.0 or maybe vers=2.0 to your list and see if you can connect:



          mount -t cifs -o user=myuser,vers=1.0 //myserver/myshare /home/user/myserver/myshare/


          EDIT: You may have to drop down the security level as well with another parameter: sec=ntlm






          share|improve this answer























          • 1





            Perfect! The "vers=1.0" did it! Fun fact: I recently had to specify version 3.0 to mount a windows server 2019 share from linux... anyway, that error message is a real cheek!

            – Peter
            Jul 30 at 23:10













          2














          2










          2









          This is just a guess because I don't remember what the default settings were on Samba 3.6 but I think CIFS is trying to mount with an smb dialect that that version of samba didn't have yet.



          Add the parameter vers=1.0 or maybe vers=2.0 to your list and see if you can connect:



          mount -t cifs -o user=myuser,vers=1.0 //myserver/myshare /home/user/myserver/myshare/


          EDIT: You may have to drop down the security level as well with another parameter: sec=ntlm






          share|improve this answer
















          This is just a guess because I don't remember what the default settings were on Samba 3.6 but I think CIFS is trying to mount with an smb dialect that that version of samba didn't have yet.



          Add the parameter vers=1.0 or maybe vers=2.0 to your list and see if you can connect:



          mount -t cifs -o user=myuser,vers=1.0 //myserver/myshare /home/user/myserver/myshare/


          EDIT: You may have to drop down the security level as well with another parameter: sec=ntlm







          share|improve this answer















          share|improve this answer




          share|improve this answer








          edited Jul 30 at 19:08

























          answered Jul 30 at 18:33









          Morbius1Morbius1

          2,3001 gold badge4 silver badges10 bronze badges




          2,3001 gold badge4 silver badges10 bronze badges










          • 1





            Perfect! The "vers=1.0" did it! Fun fact: I recently had to specify version 3.0 to mount a windows server 2019 share from linux... anyway, that error message is a real cheek!

            – Peter
            Jul 30 at 23:10












          • 1





            Perfect! The "vers=1.0" did it! Fun fact: I recently had to specify version 3.0 to mount a windows server 2019 share from linux... anyway, that error message is a real cheek!

            – Peter
            Jul 30 at 23:10







          1




          1





          Perfect! The "vers=1.0" did it! Fun fact: I recently had to specify version 3.0 to mount a windows server 2019 share from linux... anyway, that error message is a real cheek!

          – Peter
          Jul 30 at 23:10





          Perfect! The "vers=1.0" did it! Fun fact: I recently had to specify version 3.0 to mount a windows server 2019 share from linux... anyway, that error message is a real cheek!

          – Peter
          Jul 30 at 23:10


















          draft saved

          draft discarded















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1162199%2fmount-cifs-fails-with-mount-error2-no-such-file-or-directory%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown









          Popular posts from this blog

          Tamil (spriik) Luke uk diar | Nawigatjuun

          Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

          Training a classifier when some of the features are unknownWhy does Gradient Boosting regression predict negative values when there are no negative y-values in my training set?How to improve an existing (trained) classifier?What is effect when I set up some self defined predisctor variables?Why Matlab neural network classification returns decimal values on prediction dataset?Fitting and transforming text data in training, testing, and validation setsHow to quantify the performance of the classifier (multi-class SVM) using the test data?How do I control for some patients providing multiple samples in my training data?Training and Test setTraining a convolutional neural network for image denoising in MatlabShouldn't an autoencoder with #(neurons in hidden layer) = #(neurons in input layer) be “perfect”?