<br>Mount point management.<br><br>Is there an easy was to know if a disk is mounted and act accordingly or prevent data from being written to a mountpoint ?  Or to have the mount point disappear when its not mounted ?<br>
<br>Example<br><br>Lets say I create a mount point /home/me/myth and that /home/me resides on /dev/sda3.<br><br>Lets say that a disk labelled MYTH normally gets mounted there.  But lets say that someone accidentally unplugs the MYTH disk and thus nothing is mounted.  Lets say the myth backend starts recording and in the process writing data to /home/me/myth.   If MYTH isn&#39;t mounted there, then that data is going to get written to the mount point dir, ie /dev/sda3.<br>
<br>Is there any way to prevent that ?<br><br>Or how about this ?<br><br>Lets say I create a disk labelled IMAGE_BACKUP.   Lets say fstab mounts it to /home/me/image_backup.  Lets say that I want cron to copy all the files from /home/me/images to IMAGE_BACKUP at midnight when its mounted. How does cron know that IMAGE_BACKUP is mounted to /home/me/image_backup so it doesn&#39;t write data to /dev/sda3 ?  Ditto for rsync ? <br>
<br>Thanks<br>