Re: Automatically remounting CIFS share
Scott Gifford put forth on 2/16/2010 2:41 PM:
> We have a Debian Linux server which has a persistent mount of a CIFS share
> provided by a Buffalo fileserver (NAS) device.
> The mount is started automatically (from fstab) when our Debian machine
> boots, and works properly and consistently, unless the fileserver is
> rebooted. Once that happens the CIFS share has to be unmounted and
> remounted manually. Sometimes it takes our sysadmins a while to realize
> this, and so we have more downtime than is necessary.
> In the past when I have used NFS servers, failures were handled
> automatically; when the fileserver rebooted, it would be gone for a short
> while, then when it was back would immediately start working again.
> Is there a way to get similar behavior from a CIFS server, where a rebooted
> fileserver will automatically be remounted when it comes back?
Stop rebooting the NAS. If it has some kind of problem that requires frequent
reboots to fix, update the firmware. If that doesn't solve the problems,
replace it with a better NAS, or build your own Debian Samba server.
Fix the problem instead of trying to mask the symptoms. A good NAS should have
uptimes in months or years, not hours days or weeks.