I'm having a strange problem with mounting samba shares. I have to
mount three different share points on a NT server to rsync some files. I
have a script that mounts each share, rsyncs it, then umounts it before moving
onto the next share. Usually the first share completes fine, then randomly
the second or third share fails. In /etc/fstab I have the following:
//server/c$
/mnt/server/c
smbfs noauto,ro,credentials=/root/.serverpwd,debug=4
//server/d$
/mnt/server/d
smbfs noauto,ro,credentials=/root/.serverpwd,debug=4
//server/f$
/mnt/server/f
smbfs noauto,ro,credentials=/root/.serverpwd,debug=4
I mount the shares in that order. I've tried many different
combinations to figure the problem out. I've paused for 15-30 seconds
between umount'ing the last share and mounting the next with no luck. With
the debug I get back the "tconx ok" from the share that fails to mount
completely. And in reality at that point in the script, mount fails to
return back to the script, if I kill the process, the mount point is really
mounted. So it looks like mount never completely exits.
I've tried the same script on a Red Hat 8.0 machine and it works just
fine. The version of samba on the 8.0 machine is 2.2.7-2 and the RedHat
9.0 machine is 2.2.7a-8.9.0.
Has anyone else experienced this type of problem? TIA
David Benigni