Solved

SAMBA: mount hangs

Posted on 2004-09-13
2
764 Views
Last Modified: 2012-06-27
Samba 2.2.7a on RH 9.0
Installed, working partially

Issuing command mount -t smbfs -o username=foo,password=bar //$OXWAN/storage /mnt/server2

This sometimes works perfectly, sometimes hangs. When it hangs, pressing ctrl-c will break out (unfortunately, this breaks any script that might be issuing the mount) and the mount has taken place. Yes, the share is mounted.

I just ran it a number of times, and it seems to hang once every three or four tries. The server is not particularly busy, and is on the LAN - even on the same switch.

How do I eliminate this occasional hang?
0
Comment
Question by:markofenstein
2 Comments
 
LVL 3

Accepted Solution

by:
ivyfranklin earned 500 total points
ID: 12057225
This is a known bug with Samba and Redhat 9.  A discussion of the problem with possible solutions can be found here:

http://www.hadez.org/articles/technical/redhat9_samba_bug.html

running the following script seems to fix the problem:

 mv /usr/bin/smbmount /usr/bin/smbmount.orig
cat << EOF > /usr/bin/smbmount
#!/bin/bash
export LD_ASSUME_KERNEL=2.2.5
exec /usr/bin/smbmount.orig "$@"
EOF
chmod 755 /usr/bin/smbmount

Let me know if you need any more help.
0
 

Author Comment

by:markofenstein
ID: 12059935
OK, that appears to work.

I implemented it on one workstation and ran the little test script to dismount and remount - it was exhibiting the hang every 3 or 4 mounts and now went 20 with no hang, so I'm gonna mark that one fixed.

I'm having a bitch of a time getting the overall networking mounting reliably and staying mounted. I'm going to post more problems, and I hope you'll stay with me here, okay?

I'm going to wait and make sure this gets posted before I go to the "accept" button...
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question