Log in

No account? Create an account
Linux Community's Journal
[Most Recent Entries] [Calendar View] [Friends View]

Wednesday, August 13th, 2008

Time Event
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?

<< Previous Day 2008/08/13
Next Day >>
About LiveJournal.com