[PLUG] NFS monitored mount
aag.lists at gmail.com
Mon Sep 24 10:10:22 PDT 2007
On 9/24/07, श्रीधर नारायण दैठणकर <ghodechhap at ghodechhap.net> wrote:
> > Did you look at autofs and automount ?
> > (http://tldp.org/HOWTO/Automount.html)
> Also isn't this simple enough?
> if [ `mount|grep <mountpoint> >|wc -l` -eq 0 ]; then
> mount <mountpoint>;
> echo "<mountpoint> is already mounted";
Hmm, thats the best way to do it I guess.
> Actually just blindly mount works too. It gives a warning which you can ignore
> but at the end share is guaranteed to be mounted :)
Blind mount wont work. It will get mounted again on the same mountpoint.
More information about the plug-mail