[PLUG] NFS monitored mount

Aditya Godbole aag.lists at gmail.com
Mon Sep 24 22:40:22 IST 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>;
> else
>         echo "<mountpoint> is already mounted";
> fi

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.

-aditya


More information about the Plug-mail mailing list