On 17/01/11 14:02, Jim Cheetham wrote: > Not sure what caused your problem, but I like to leave marker files on > my mount pounts, where they exist when a device is unmounted (i.e. not > /media/...) > > So when my drive is unmounted I might have "/data" -- so in there I'll > create a file called "/data/STOP". When the correct device is mounted > onto /data, this file effectively disappears -- so I can check for it > in the top of any simple backup scripts ... > > if [ -e /data/STOP ] > then exit 1 > fi > > This helps to detect unmounted directories, without having to know > anything about how they are mounted in the script. > > -jim > This is excellent, I'll be making use of this method!
Thanks, Roger _______________________________________________ Linux-users mailing list Linux-users@lists.canterbury.ac.nz http://lists.canterbury.ac.nz/mailman/listinfo/linux-users