LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-14-2003, 08:23 AM   #1
jeffvd
LQ Newbie
 
Registered: Sep 2003
Location: belgium
Posts: 6

Rep: Reputation: 0
mount -t smbfs / smbstatus


I made a scriptfile on my redhat 9 to mount a netwerkshare on a Windows 2000 Server (kyara).
>> mount -t smbfs //kyara/share /mnt/nfs -o username=blah,password=bloeh

This works, but when I test it on a Redhat 8, I get this error:

32123: session request to KYARA failed (Not listening on called name)
32123: session request to *SMBSERVER failed (Not listening on called name)
SMB connection failed

I've tried smbmount, checked shares with smbclient -L, but nothing
When I check smbstatus on the Redhat8 server i get this:

Samba version 2.2.7
Service uid gid pid machine
----------------------------------------------
Failed to open byte range locking database
ERROR: Failed to initialise locking database
Can't initialise locking module - exiting

I've checked many threads on this forum, the internet, but I've found nothing that solved my problem.

If anyone can help me, please do

jeff
 
Old 10-14-2003, 08:59 AM   #2
mrmdls
LQ Newbie
 
Registered: Sep 2003
Location: New Brunswick, Canada
Distribution: JDS
Posts: 17

Rep: Reputation: 0
mount -t smbfs/smbstatus

Jeff,

I think the problem is that windows computers don't read a backslash in the smbclient command (two linux computers would) I would try:

smbclient \\ windows computer name\share name


Hope this Helps,

Dave S.
 
Old 10-14-2003, 09:00 AM   #3
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Howzit

It maybe that your linux box is unable to resolv the name of u're M$ box. Edit this file /etc/hosts and place this entry xxx.xxx.xxx.xxx KYARA. To test then ping KYARA and see if name gets resolved. Also try the following smbclient -L //remote_server to see if any shares come up. Then mount the way u had mentioned before. If u want to mount this automatically each time then place a entry //remote_server/share /mnt/network smbfs username=xxx,password=xxx 0 0.

Chow
 
Old 10-14-2003, 09:21 AM   #4
jeffvd
LQ Newbie
 
Registered: Sep 2003
Location: belgium
Posts: 6

Original Poster
Rep: Reputation: 0
Yep,

I can ping the MS Server, so it resolves the host name.
When I try smbclient -L //remote_server, I don't see any shares.
I just get some errors

session request to kyara failed (not listening on called name)
session request to *SMBSERVER failed (not .....)

Strange thing is, when I run the scriptfile on another linux machine, it connects to (the same) MS Server.
 
Old 10-14-2003, 10:08 AM   #5
mrmdls
LQ Newbie
 
Registered: Sep 2003
Location: New Brunswick, Canada
Distribution: JDS
Posts: 17

Rep: Reputation: 0
mount -t smbfs/smbstatus

Jeff,

I was wondering if you've set up your /etc/samba/smb.conf correctly, the reason I saying that, is when you run smbstatus, it's showing a pid, but the files are locked.(that tells me that nobody is using any shared resources on your linux machine. I'm thinking that you might not have renamed your workgroup in the etc/samba/smb.conf

Hope that helps,

Dave S.
 
Old 10-14-2003, 10:17 AM   #6
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Howzit

What I understood from u're question is a straight forward mount from a windows pc therefor u need not have samba running on your box. When u type // RH recognizes that this is a samba share u trying to mount. Check one more thing which is Nessa's to connect smb shares. chkconfig --list netfs this should say that netfs on for runlevel 345. To change this setup (menu) or chkconfig --level 345 netfs on then reboot and try again.

chow
 
Old 10-14-2003, 10:31 AM   #7
mrmdls
LQ Newbie
 
Registered: Sep 2003
Location: New Brunswick, Canada
Distribution: JDS
Posts: 17

Rep: Reputation: 0
mount -t/smbstatus

Jeff,

I just thought of one more thing to check, and that would be your security settings (in Red Hat 8 &9)

Dave S.
 
Old 10-14-2003, 01:35 PM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,680

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
With smbclient you don't need the // its just
smbclient -L hostname

Do you have a firewall running the the RH PC?
 
Old 10-16-2003, 02:25 AM   #9
jeffvd
LQ Newbie
 
Registered: Sep 2003
Location: belgium
Posts: 6

Original Poster
Rep: Reputation: 0
First of all, thx for the many and quick response !!!

Answers to all of the above:

- I've changed the workgroup in smb.conf-file. Smbstatus ok.
- chkconfig --list netfs = runlevel 345 ON.
- On the redhat8 I disabled the firewall.
- I've tried mounting with \\\\server\\share , smbmount,...

and...still the same problem

So if you guys still feel like helping, i'm not gonna stop ya )

jeff
 
Old 10-16-2003, 02:53 AM   #10
aqoliveira
Member
 
Registered: Dec 2001
Location: Portugal
Distribution: /Red Hat/Fedora/Solaris
Posts: 622

Rep: Reputation: 30
Howzit

try mounting like this //remote_server/share /mnt/network -U username

chow
 
Old 10-16-2003, 03:08 AM   #11
jeffvd
LQ Newbie
 
Registered: Sep 2003
Location: belgium
Posts: 6

Original Poster
Rep: Reputation: 0
yep,

Nope, I still get the same error...

32123: session request to KYARA failed (Not listening on called name)
32123: session request to *SMBSERVER failed (Not listening on called name)
SMB connection failed


jeff
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
problems with smbfs mount-point in /etc/fstab - "mount -a" works, but not at boottime MarkSide Linux - Software 4 11-20-2005 03:30 PM
mount -t smbfs error skimmer Linux - Networking 5 11-07-2005 02:50 AM
cannot mount smbfs flipboi Linux - Security 2 08-12-2004 09:18 AM
mount -t smbfs loganwva Linux - Networking 1 10-21-2003 11:02 AM
smbfs mount failure MPowell Linux - Networking 0 04-05-2002 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration