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 09-29-2004, 04:34 PM   #1
soren625
Member
 
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Rep: Reputation: 15
can't mount windows shares; need help interpreting log


I used to be able to mount my Windows shares to my FC2 system with ease. Now, for apparently no reason, (although I was messing with my router configuration a bit--I think it's all as it was to begin with now), when I try to mount up one of the shares, I get :
Code:
Error connecting to 192.168.0.102 (Connection refused)
9774: Connection to 192.168.0.102 failed
SMB connection failed
I checked in the /var/log/samba and found a log called smbmount.log here is what it says:
Code:
tdb(/var/cache/samba/gencache.tdb): tdb_lock failed on list 99 ltype=1 (Bad file descriptor)
[2004/09/17 14:47:52, 0] client/smbmount.c:do_connection(156)
  1768: Connection to iliad failed
Any help would be much appreciated.
 
Old 09-30-2004, 09:03 PM   #2
soren625
Member
 
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Original Poster
Rep: Reputation: 15
I checked my Windows firewall settings (Windows 2000 w/ McAfee Firewall) I made sure the SMB ports were open (139, 445) I also made sure my router is allowing these ports to be open on the LAN side.

Also, now the error in the terminal is this:
Code:
timeout connecting to 192.168.0.102:445
timeout connecting to 192.168.0.102:139
Error connecting to 192.168.0.102 (Operation already in progress)
6189: Connection to iliad failed
SMB connection failed
I have no other network-related problems with either computer, (BTW, the Win2K box connects to the FC2 shares just fine). Both are fine on the 'net, and each can ping the other.

I'm very perplexed. Please help.
 
Old 10-01-2004, 03:45 AM   #3
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
Quote:
Originally posted by soren625

I checked my Windows firewall settings (Windows 2000 w/ McAfee Firewall) I made sure the SMB ports were open (139, 445) I also made sure my router is allowing these ports to be open on the LAN side.
not sure if it is any help but you may need to have 137, 135 and 138 open - to be honest I hav enever shut these down so it may not make any difference. Is there any reason to run the firewall on the windows box?

Quote:

I have no other network-related problems with either computer, (BTW, the Win2K box connects to the FC2 shares just fine). Both are fine on the 'net, and each can ping the other.

I'm very perplexed. Please help.
so you have a win 2k box, what is the other one? win xp? if so I would still be checking (or disabling) the win firewall - seems that it works well but maybe a little too well in this case. Of cource this all assume you are running a firewall on your linux box, and the linux box is a firewall. If it isn't - that is it's just another local client, then the original question stands, do you need to firewall this box?
 
Old 10-01-2004, 06:18 AM   #4
soren625
Member
 
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Original Poster
Rep: Reputation: 15
I have a total of four computers on my network: 1 running Fedora Core 2 (with no iptables, or any other firewall), 1 running Windows 2000 Pro with McAfee Internet Security Suite 6 (includes Firewall), and two running Windows 98SE. All of them are connected to a D-Link wireless router (which includes a firewall.)
 
Old 10-01-2004, 07:46 AM   #5
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
ok so the win2k box works but the 98 boxen don't? and that would make 192.168.0.102 one of the win 98 boxes?

either way maybe the best bet to start with is to step up the log level in samba to maybe 3 to get some more detail. I guess all the usual things should be checked as well, there are about a million posts here about things to look for in your smb.conf so I wont rehash them all, and I guess if the win2k box is working then it is probably ok so maybe the extra verbosity on the logs will give us a tip
 
Old 10-01-2004, 02:11 PM   #6
soren625
Member
 
Registered: May 2004
Distribution: Fedora Core
Posts: 64

Original Poster
Rep: Reputation: 15
Thanks for the tip on the detail level in the log.

Just to clarify:
I am attempting to mount Windows 2000 shares, the Win98 boxes have no shares. The Win2k can access the Samba shares on the Linux box, but the Linux can't access the Win2k shares (that's what gives me the above errors.)
 
Old 10-01-2004, 07:05 PM   #7
Sutekh
Member
 
Registered: Apr 2002
Location: Melbourne, Australia
Distribution: Gentoo
Posts: 273

Rep: Reputation: 30
ahh ok sorry i was getting it all mixed up.

hopefully the log levels will be of more help :-)

it would probably pay to use smbclient to connect to start with that way you can change the log level in that without having to worry about smbd itself. you may need to go higher than 3 to find the answer and that generates a lot of info in your logs

if it works with smbclient then it should work with mount
 
  


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
Mount Windows 2003 Shares MarquisEXB Linux - Newbie 7 01-12-2006 02:17 PM
How to mount windows shares on startup? exitsfunnel Linux - General 1 05-10-2005 07:06 PM
Linux can mount samba shares but not windows shares bindsocket Linux - Software 1 12-01-2003 05:28 PM
samba won't mount windows shares ixion Linux - Software 6 02-28-2003 12:51 AM
mount windows shares? Dave Campbell Linux - Networking 7 09-01-2002 04:54 PM

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

All times are GMT -5. The time now is 12:38 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