Solved

SAMBA: mount hangs

Posted on 2004-09-13
2
759 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

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

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…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

746 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now