Solved

SAMBA: mount hangs

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

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
iptables ubuntu BLOCK all 2 84
High Bandwidth Usage 6 58
Automate the blocking off IP's from a list file in Ubuntu 9 20
Set linux box as ip router 3 23
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…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

803 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