Networking Forums

Networking Forums > Computer Networking > Linux Networking > smbmount <==> fstab .. and a touch of "Called name not present"

Reply
Thread Tools Display Modes

smbmount <==> fstab .. and a touch of "Called name not present"

 
 
relaxedrob@optushome.com.au
Guest
Posts: n/a

 
      09-01-2004, 06:21 AM
Hi All,

I am running RH9 and wish to mount a Win2000 drive. I run this command:

smbmount //hons.netcomp.monash.edu.au/RobertMarkBram \
/tmp/hons \
-o username=myusername,password=mypwd,netbiosname=HON S

And get the following response:
1307: session request to HONS.NETCOMP.MO failed (Called name not present)

BUT!! The mountpoint *is* made:
[root@robertmarkbram root]# mount
.....
//hons.netcomp.monash.edu.au/RobertMarkBram on /tmp/hons type smbfs (0)

And I can navigate through the dir structure.

1) How could I fix this? Should I worry about it?

2) Can anyone help me make this into an fstab entry please?

Any advice most welcome!

Rob

 
Reply With Quote
 
 
 
 
Luke Matthews
Guest
Posts: n/a

 
      09-01-2004, 06:50 AM
A quick google search found this page:
http://www-1.ibm.com/servers/eserver...unting_faq.htm

It appears it's because you are not using the machines netbios name in
the smbmount command. If it's working then I probably wouldn't worry too
much about the error.

A fstab entry for smbfs might look something like this:

//servername/share /mnt/share smbfs username=myusername,password=mypwd 0 0

Edit as appropriate for your setup of course. You also might want to
look at "man mount" and possibly set the uid and gid in fstab to make
sure the user you want to access this with is able to read/write on the
share. I'm assuming since you aren't using the netbois name, and it *is*
mounting through smbmount, that it would also work mounted through
fstab. I haven't tried that out myself.

--Luke

(E-Mail Removed) wrote:
> Hi All,
>
> I am running RH9 and wish to mount a Win2000 drive. I run this command:
>
> smbmount //hons.netcomp.monash.edu.au/RobertMarkBram \
> /tmp/hons \
> -o username=myusername,password=mypwd,netbiosname=HON S
>
> And get the following response:
> 1307: session request to HONS.NETCOMP.MO failed (Called name not present)
>
> BUT!! The mountpoint *is* made:
> [root@robertmarkbram root]# mount
> ....
> //hons.netcomp.monash.edu.au/RobertMarkBram on /tmp/hons type smbfs (0)
>
> And I can navigate through the dir structure.
>
> 1) How could I fix this? Should I worry about it?
>
> 2) Can anyone help me make this into an fstab entry please?
>
> Any advice most welcome!
>
> Rob
>

 
Reply With Quote
 
Stefan Viljoen
Guest
Posts: n/a

 
      09-01-2004, 04:07 PM
(E-Mail Removed) wrote:

> Hi All,
>
> I am running RH9 and wish to mount a Win2000 drive. I run this command:
>
> smbmount //hons.netcomp.monash.edu.au/RobertMarkBram \
> /tmp/hons \
> -o username=myusername,password=mypwd,netbiosname=HON S
>
> And get the following response:
> 1307: session request to HONS.NETCOMP.MO failed (Called name not present)
>
> BUT!! The mountpoint *is* made:
> [root@robertmarkbram root]# mount
> ....
> //hons.netcomp.monash.edu.au/RobertMarkBram on /tmp/hons type smbfs (0)
>


Hmm - are you using the name reported by findsmb?

--
---
Stefan Viljoen
Software Support Technician
Polar Design Solutions
 
Reply With Quote
 
relaxedrob@optushome.com.au
Guest
Posts: n/a

 
      09-03-2004, 03:50 AM
Hi Stefan!

Thank you very much for your response..

> Hmm - are you using the name reported by findsmb?


I don't seem to have the "findsmb" command, but I can do this:

[root@robertmarkbram root]# nmblookup -A 130.194.57.26
Looking up status of 130.194.57.26
HONS <00> - B <ACTIVE>
STRUAN <00> - <GROUP> B <ACTIVE>
HONS <03> - B <ACTIVE>
HONS <20> - B <ACTIVE>
STRUAN <1e> - <GROUP> B <ACTIVE>
INet~Services <1c> - <GROUP> B <ACTIVE>
IS~HONS <00> - B <ACTIVE>
STRUAN <1d> - B <ACTIVE>
..__MSBROWSE__. <01> - <GROUP> B <ACTIVE>

This message told me I should use the name with the <20> next to it.
http://groups.google.com/groups?hl=e...line.com#link4

Is this what you mean?

Rob

 
Reply With Quote
 
relaxedrob@optushome.com.au
Guest
Posts: n/a

 
      09-03-2004, 04:13 AM
Hi Luke!

> A quick google search found this page:
> http://www-1.ibm.com/servers/eserver...unting_faq.htm


Thank you very much for your effort - this page explained a lot.
Alhough I am still little puzzled as to what its name should be, as
you pointed out, it does not seem to matter!

> A fstab entry for smbfs might look something like this:
>
> //servername/share /mnt/share smbfs username=myusername,password=mypwd 0 0
>
> Edit as appropriate for your setup of course. You also might want to
> look at "man mount" and possibly set the uid and gid in fstab to make
> sure the user you want to access this with is able to read/write on the
> share. I'm assuming since you aren't using the netbois name, and it *is*
> mounting through smbmount, that it would also work mounted through
> fstab. I haven't tried that out myself.


I used a line like this which works well:

//HONS/RobertMarkBram /phdWeb smbfs
username=myUserName,password=myPwd,uid=gid=500 0 0

Rob

 
Reply With Quote
 
Stefan Viljoen
Guest
Posts: n/a

 
      09-03-2004, 06:11 AM
(E-Mail Removed) wrote:

> Hi Stefan!
>
> Thank you very much for your response..
>
>> Hmm - are you using the name reported by findsmb?

>
> I don't seem to have the "findsmb" command, but I can do this:
>
> [root@robertmarkbram root]# nmblookup -A 130.194.57.26
> Looking up status of 130.194.57.26
> HONS <00> - B <ACTIVE>
> STRUAN <00> - <GROUP> B <ACTIVE>
> HONS <03> - B <ACTIVE>
> HONS <20> - B <ACTIVE>
> STRUAN <1e> - <GROUP> B <ACTIVE>
> INet~Services <1c> - <GROUP> B <ACTIVE>
> IS~HONS <00> - B <ACTIVE>
> STRUAN <1d> - B <ACTIVE>
> ..__MSBROWSE__. <01> - <GROUP> B <ACTIVE>
>
> This message told me I should use the name with the <20> next to it.
>

http://groups.google.com/groups?hl=e...line.com#link4
>
> Is this what you mean?
>
> Rob
>


Hmm - not exactly. On my Samba version (erm - the one that was "latest" on
26 Nov 2003) I have a "findsmb" binary that prints out different looking
info, like so :

[rylan@StefanLinux samba]$ findsmb

IP ADDR NETBIOS NAME WORKGROUP/OS/VERSION
---------------------------------------------------------------------
169.254.255.10 YZELLEDESKTOP [YZELLEDESKTOP] [Windows 5.1] [Windows 5.1]
169.254.255.20 STEFAN + [GOEDEHOOP10] [Unix] [Samba 3.0.0]
169.254.255.30 BCREKENAAR [ GOEDEHOOP10 ]
[rylan@StefanLinux samba]$

where STEFAN is my linux box, YZELLEDESKTOP is a Windows XP Pro Machine, and
BCREKENAAR is W98 machine. I make a SAMBA connection to them by doing

smbmount "//yzelledesktop/yzellehd" /mnt/yrekenaar -o
username="beeblebrox",password=hhgg1W,uid=rylan,dm ask=0775,fmask=0775

for YZELLEDESKTOP and

smbmount "//bcrekenaar/bchd" /mnt/bcrekenaar -o
username="Zaphod",password=ppw81UZ,uid=rylan,dmask =0775,fmask=0775

which works fine with no errors.

Note that to get the "/yzellehd" and "/bchd" parts which are the Windows
shares, I do

[root@StefanLinux root]# smbclient -L YZELLEDESKTOP
added interface ip=169.254.255.20 bcast=169.254.255.255 nmask=255.255.255.0
Got a positive name query response from 169.254.255.10 ( 169.254.255.10 )
Password:
Domain=[GOEDEHOOP10] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]

Sharename Type Comment
--------- ---- -------
IPC$ IPC Remote IPC
print$ Disk Printer Drivers
YzelleHD Disk
HPLaserJ Printer HP LaserJet 1100 (MS)
ADMIN$ Disk Remote Admin
C$ Disk Default share
Y-MyDocs Disk

Server Comment
--------- -------

Workgroup Master
--------- -------
[root@StefanLinux root]#

And, finally, here is my smb.conf:

[global]

netbios name = me
workgroup = GOEDEHOOP10
security = share
log file = /var/log/samba.log
log level = 1
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=16384 SO_SNDBUF=16384
wins support = yes
domain logons = no
logon drive = f:
logon home = \\stefan\%U
os level = 99
preferred master = yes
local master = yes
hosts allow = 169.254.255.10 169.254.255.11 169.254.255.20 169.254.255.30
127.0.0.1
encrypt passwords = yes
browseable = yes
lanman auth = yes
lm announce = yes

Hope this helps? I think you might somehow be using an invalid name as a
connect name and that give you your errors?

Regards,

--
---
Stefan Viljoen
Software Support Technician
Polar Design Solutions
 
Reply With Quote
 
Stefan Viljoen
Guest
Posts: n/a

 
      09-04-2004, 07:30 AM
Stefan Viljoen wrote:

> Hmm - not exactly. On my Samba version (erm - the one that was "latest" on
> 26 Nov 2003) I have a "findsmb" binary that prints out different looking
> info, like so :


Sorry, that should read "perl script" not "binary".

--
---
Stefan Viljoen
Software Support Technician
Polar Design Solutions
 
Reply With Quote
 
Dave Brown
Guest
Posts: n/a

 
      09-05-2004, 10:45 PM
In article <ch4rtv$f71$(E-Mail Removed)>, Stefan Viljoen wrote:
> (E-Mail Removed) wrote:
>
>> Hi All,
>>
>> I am running RH9 and wish to mount a Win2000 drive. I run this command:
>>
>> smbmount //hons.netcomp.monash.edu.au/RobertMarkBram \
>> /tmp/hons \
>> -o username=myusername,password=mypwd,netbiosname=HON S
>> ...

>
> Hmm - are you using the name reported by findsmb?


Curious. I hadn't know about the 'findsmb' command so I tried it. Only
my linux system (which shares 'homes') showed up. But I had a Win98
machine also running, and it has shares which didn't show up... until I
did an 'smbclient -L ', which displayed those shares, and then 'findsmb'
also displayed them. What's that about?

--
Dave Brown Austin, TX
 
Reply With Quote
 
Stefan Viljoen
Guest
Posts: n/a

 
      09-06-2004, 06:03 AM
Dave Brown wrote:

> In article <ch4rtv$f71$(E-Mail Removed)>, Stefan Viljoen wrote:
>> (E-Mail Removed) wrote:
>>
>>> Hi All,
>>>
>>> I am running RH9 and wish to mount a Win2000 drive. I run this command:
>>>
>>> smbmount //hons.netcomp.monash.edu.au/RobertMarkBram \
>>> /tmp/hons \
>>> -o username=myusername,password=mypwd,netbiosname=HON S
>>> ...

>>
>> Hmm - are you using the name reported by findsmb?

>
> Curious. I hadn't know about the 'findsmb' command so I tried it. Only
> my linux system (which shares 'homes') showed up. But I had a Win98
> machine also running, and it has shares which didn't show up... until I
> did an 'smbclient -L ', which displayed those shares, and then 'findsmb'
> also displayed them. What's that about?
>


Hmm - not too sure. I have a relatively simple network setup (four PC's and
a hub) - do you have routers / gateways etc? On mine findsmb found each PC
with Windows 98/XP first try. Might have to do with your network topology?
Also, I suspect that each Windows PC must, of course, first be configured
to talk with -other- Windows PCs before you'll see it show up in findsmb
run from a Linux machine connected to the network.

But you seem to have this covered - no idea why one machine shows up and one
doesn't!

Did you solve your problem though?

--
---
Stefan Viljoen
Software Support Technician
Polar Design Solutions
 
Reply With Quote
 
relaxedrob@optushome.com.au
Guest
Posts: n/a

 
      09-07-2004, 04:15 AM
Hi Stefan,

> > Hmm - not exactly. On my Samba version (erm - the one that was "latest" on
> > 26 Nov 2003) I have a "findsmb" binary that prints out different looking
> > info, like so :

>
> Sorry, that should read "perl script" not "binary".


Can you tell me where this is? I have Samba version
2.2.7a-security-rollup-fix and "which findsmb" reveals nothing..

Rob

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
IE options - "never dial a connection" doesnt stick - returns to "Dial whenever a network connection is not present" techman41973@yahoo.com Wireless Internet 2 03-08-2006 08:08 PM
Re: SPEWS SLIMES "WindsorFox", "Kevin-!:?)", "Spin Dryer" get the cold shoulder at broadband ng! SneakyP Broadband 0 11-29-2005 10:46 PM
Attention Plus.net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM broadband newsgroup !:?) Broadband 0 11-28-2005 04:28 AM
Attention Plus.Net Re: SPEWS DOLTS "WindsorFox", "Kevin-!:?)", "SpinDryer" SPAM braodband newsgroup !:?) Broadband 0 11-28-2005 03:03 AM
Is this what is called a "connection drop" ? Michel S. Network Routers 15 06-24-2005 09:04 PM



1 2 3 4 5 6 7 8 9 10 11