Red Hat Bugzilla – Bug 19623
smbmount does not restore the connection after connection failure
Last modified: 2007-04-18 12:29:27 EDT
Seems that smbmount does not restore the connection after a failure.
To reproduce do the following (the ssh is used only to demonstrate the
problem, it is irrevant for the problem).
1. Open a local tunnel to server host
ssh -L 8001:localhost:139 email@example.com
a tunnell local port (8001) will be open.
2. mount a disk using smbmount via this tunnel.
smbmount //127.0.0.1/share_name /mnt -o username=samba_user_name,port=8001
Now you can browse the mounted filesystem
ls -l /mnt
3. Close ssh session (do not forget to close the terminal, because
the ssh will continue to provide tunnell)
so the tunnell will not be available.
Do ls -l /mnt
you will get "IO error" message as it should be.
4. Re-establish ssh session (repeat item 1)
doing ls -l /mnt you receive "IO error"
despite the connection was re-established.
Buy the way Windows NT reestablishes the connection automatically in such
The only way to fix "IO error" this is to
umount /mnt and then mount it again (item #2)
This seems to be the same problem of smbmount not restoring the connection
after win9x/nt servers reboots.
This is a known smbfs/samba issue.
for patches about this.
*** Bug 21385 has been marked as a duplicate of this bug. ***
Urban's latest bugfix patch will be in 2.0.7-24.
This bug was fixed in Rawhide, but recent samba upgrade
rpm -q samba
seems have this bug again.
The problem still exists in samba-2.0.10-0.7
This seems fixed in samba 2.2, and verified to work in 2.2.1a-3