nmblookup followed by a mount

Clash 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.
mount samba smb
add a comment |Â
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.
mount samba smb
add a comment |Â
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.
mount samba smb
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
mount samba smb
asked Feb 25 at 16:43
RalphShnelvar
35
35
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password