LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-27-2009, 12:13 AM   #1
buee
Member
 
Registered: May 2009
Posts: 81

Rep: Reputation: 16
Trouble mounting a SMB share with CentOS


Hello. I'm having some issues mounting a Samba share with CentOS. The server running Samba is Ubuntu 8.04 and that seems to be functioning fine.

I have an IPCop box and the CentOS 5 machine is in the Orange Zone, the box running Samba (my NAS) is in the Green zone. I have opened the DMZ pinholes for rsync and smb there and I know that's working as I can get from another Ubuntu box through to the NAS using the same exact command. I am attempting to use

Code:
mount -t cifs -o username=(username),password=(password) //(IP address)/(share name) /mnt
as root on the CentOS 5 machine but it takes a very long time and then gives me

Code:
mount error 110 = Connection timed out
I can issue that exact command from a Ubuntu machine in the Orange zone and it mounts without hesitation. I can get to my NAS with any Windows box. All of them using the same username and password. I will say that I've restarted Samba on the NAS and also rebooted the NAS. I will also say that the command DID work at least once as I was using this within a script and the script created a backup file, which it was supposed to do, but then I noticed it failed the next time it tried to run, obviously due to the mount error. If anyone has any insights, please let me know.

Another person on another forum had me run /sbin/modinfo cifs which output the following:

Code:
filename:       /lib/modules/2.6.18-128.1.6.el5/kernel/fs/cifs/cifs.ko
version:        1.54RH
description:    VFS to access servers complying with the SNIA CIFS Specification e.g. Samba and Windows
license:        GPL
author:         Steve French <sfrench@us.ibm.com>
srcversion:     DC87874AEC800D605600655
depends:        
vermagic:       2.6.18-128.1.6.el5 SMP mod_unload 686 REGPARM 4KSTACKS gcc-4.1
parm:           CIFSMaxBufSize:Network buffer size (not including header). Default: 16384 Range: 8192 to 130048 (int)
parm:           cifs_min_rcv:Network buffers in pool. Default: 4 Range: 1 to 64 (int)
parm:           cifs_min_small:Small network buffers in pool. Default: 30 Range: 2 to 256 (int)
parm:           cifs_max_pending:Simultaneous requests to server. Default: 50 Range: 2 to 256 (int)
That thread has gone cold and I really need a fix ASAP for this as it is on a production mail server. Thanks in advance for any insights...
 
Old 05-27-2009, 02:35 AM   #2
linusali
LQ Newbie
 
Registered: Jul 2007
Location: Dubai
Distribution: Kubuntu - 9.04
Posts: 18

Rep: Reputation: 1
Hi there,

what about the route? Did you try telneting to port 445 and 139 on NAS from the Centos? needless to say, but check the firewall log, may be you will get some insight.

Regards
Salih
 
Old 05-27-2009, 06:21 PM   #3
buee
Member
 
Registered: May 2009
Posts: 81

Original Poster
Rep: Reputation: 16
Resolved

Quote:
Originally Posted by linusali View Post
Hi there,

what about the route? Did you try telneting to port 445 and 139 on NAS from the Centos? needless to say, but check the firewall log, may be you will get some insight.

Regards
Salih
I found the issue. I had forwarded the SMB port using UDP rather than TCP which explains why the other machine could get to the NAS. I switched that over and problem solved. Thanks for the guidance to the ports, I was sure I had it going properly.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I'm having trouble mounting smb share in linux... trist007 Linux - Newbie 3 03-24-2009 09:37 AM
Mounting Permanently SMB share raji10k Linux - General 2 02-26-2009 04:33 AM
SMB share Centos/RHEL5 keyboard1973 Linux - Newbie 4 08-17-2008 01:40 AM
Error Mounting Windows SMB Share plustiber Linux - Networking 1 06-27-2005 01:39 AM
Mounting a SMB Share? owoods Linux - Newbie 2 09-04-2004 09:03 AM


All times are GMT -5. The time now is 08:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration