nmblookup followed by a mount

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












Following up on Configuring Samba on Ubuntu 16.04 on two nearly identical machines



In order to do a network share I have found I need to do the following two steps
nmblookup
mount



For instance



some-very-long-name@some-very-long-name:~$ nmblookup some-very-long-
192.168.29.168 some-very-long-<00>
some-very-long-name@some-very-long-name:~$ sudo mount -v //192.168.29.168/some-very-long-name /mnt/ralph12 -o username=some-very-long-name,password=somePassword
mount: //192.168.29.168/some-very-long-name mounted on /mnt/ralph12
some-very-long-name@some-very-long-name:~$


That is, nmblookup delivers an ip address which is then used in the mount.



Question:



Is there any way to combine the two or have the mount command do this:



sudo mount -v //some-very-long-/some-very-long-name /mnt/ralph12 -o username=some-very-long-name,password=somePassword


When I try the above command I get




mount: wrong fs type, bad option, bad superblock on
//real-estate-dat/real-estate-data-mining,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)



 In some cases useful info is found in syslog - try
dmesg | tail or so.










share|improve this question

























    up vote
    0
    down vote

    favorite












    Following up on Configuring Samba on Ubuntu 16.04 on two nearly identical machines



    In order to do a network share I have found I need to do the following two steps
    nmblookup
    mount



    For instance



    some-very-long-name@some-very-long-name:~$ nmblookup some-very-long-
    192.168.29.168 some-very-long-<00>
    some-very-long-name@some-very-long-name:~$ sudo mount -v //192.168.29.168/some-very-long-name /mnt/ralph12 -o username=some-very-long-name,password=somePassword
    mount: //192.168.29.168/some-very-long-name mounted on /mnt/ralph12
    some-very-long-name@some-very-long-name:~$


    That is, nmblookup delivers an ip address which is then used in the mount.



    Question:



    Is there any way to combine the two or have the mount command do this:



    sudo mount -v //some-very-long-/some-very-long-name /mnt/ralph12 -o username=some-very-long-name,password=somePassword


    When I try the above command I get




    mount: wrong fs type, bad option, bad superblock on
    //real-estate-dat/real-estate-data-mining,
    missing codepage or helper program, or other error
    (for several filesystems (e.g. nfs, cifs) you might
    need a /sbin/mount. helper program)



     In some cases useful info is found in syslog - try
    dmesg | tail or so.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Following up on Configuring Samba on Ubuntu 16.04 on two nearly identical machines



      In order to do a network share I have found I need to do the following two steps
      nmblookup
      mount



      For instance



      some-very-long-name@some-very-long-name:~$ nmblookup some-very-long-
      192.168.29.168 some-very-long-<00>
      some-very-long-name@some-very-long-name:~$ sudo mount -v //192.168.29.168/some-very-long-name /mnt/ralph12 -o username=some-very-long-name,password=somePassword
      mount: //192.168.29.168/some-very-long-name mounted on /mnt/ralph12
      some-very-long-name@some-very-long-name:~$


      That is, nmblookup delivers an ip address which is then used in the mount.



      Question:



      Is there any way to combine the two or have the mount command do this:



      sudo mount -v //some-very-long-/some-very-long-name /mnt/ralph12 -o username=some-very-long-name,password=somePassword


      When I try the above command I get




      mount: wrong fs type, bad option, bad superblock on
      //real-estate-dat/real-estate-data-mining,
      missing codepage or helper program, or other error
      (for several filesystems (e.g. nfs, cifs) you might
      need a /sbin/mount. helper program)



       In some cases useful info is found in syslog - try
      dmesg | tail or so.










      share|improve this question













      Following up on Configuring Samba on Ubuntu 16.04 on two nearly identical machines



      In order to do a network share I have found I need to do the following two steps
      nmblookup
      mount



      For instance



      some-very-long-name@some-very-long-name:~$ nmblookup some-very-long-
      192.168.29.168 some-very-long-<00>
      some-very-long-name@some-very-long-name:~$ sudo mount -v //192.168.29.168/some-very-long-name /mnt/ralph12 -o username=some-very-long-name,password=somePassword
      mount: //192.168.29.168/some-very-long-name mounted on /mnt/ralph12
      some-very-long-name@some-very-long-name:~$


      That is, nmblookup delivers an ip address which is then used in the mount.



      Question:



      Is there any way to combine the two or have the mount command do this:



      sudo mount -v //some-very-long-/some-very-long-name /mnt/ralph12 -o username=some-very-long-name,password=somePassword


      When I try the above command I get




      mount: wrong fs type, bad option, bad superblock on
      //real-estate-dat/real-estate-data-mining,
      missing codepage or helper program, or other error
      (for several filesystems (e.g. nfs, cifs) you might
      need a /sbin/mount. helper program)



       In some cases useful info is found in syslog - try
      dmesg | tail or so.







      mount samba smb






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 25 at 16:43









      RalphShnelvar

      35




      35

























          active

          oldest

          votes











          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f1009673%2fnmblookup-followed-by-a-mount%23new-answer', 'question_page');

          );

          Post as a guest



































          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1009673%2fnmblookup-followed-by-a-mount%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          Trouble downloading packages list due to a “Hash sum mismatch” error

          How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

          How do I move numbers in filenames, in a batch renaming operation?