I have a Windows share mounted on a Linux server (RHEL4) using a mount
command like this:
mount -t smbfs //server_ip/foldername /servername/foldername -o username=USERNAME,password=PASSWORD -o gid=users,dmask=777,fmask=777,rw,noatime
It stays working for weeks at a time but sometimes stops working, at which time I unmount it and mount it again. This works but the share would have been unavailable for some time before I noticed it in log files.
Is there some way that the share can be automatically remounted when it fails?