Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

SAMBA: mount hangs

Posted on 2004-09-13
2
Medium Priority
?
770 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
ivyfranklin earned 2000 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

Building an interactive eFuture classroom

Watch and learn how ATEN provided a total control system solution including seamless switching matrix switch, HDBaseT extenders, PDU, lighting control to build an interactive eFuture classroom.

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…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

721 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