if external drive is not mounted?
So... Is there a way to tell the file system not to write to a mount point if the device is not mounted?
lets say I have an external device mounted at /mnt/ext-disk
a script is set to write some backups there
if the disk is not mounted, the files get written to the root filesystem, which of course, in my case, fills up the root filesystem causing all kinds of havoc.
now I realize I could add some checking to my script to make sure the disk is mounted, but I wonder if there is a better way?