Windows share mounted on Linux fails after some time
        Posted  
        
            by 
                Liam
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Liam
        
        
        
        Published on 2010-08-12T09:18:35Z
        Indexed on 
            2011/01/13
            22:55 UTC
        
        
        Read the original article
        Hit count: 272
        
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?
© Server Fault or respective owner