As mentioned elsewhere, I’ve spent some time this week messing around with a data disk in a CentOS box. The disk has a few partitions, mounted at various places in hierarchy. To facilitate this work I manually stopped the various services that might access the disk’s partitions, and then unmounted the partitions.
All went well, the work is complete. But it occurred to me as an afterthought... if there was anything I’d overlooked that might try and access these partitions, it might end up writing to the unmounted mount points? A candidate would have been my overnight backup script, which writes things to one of these partitions and in fact that nearly happened, except the script failed last night for other reasons.
So my question... is there anything I could, or should have done, or permissions I should set, to protect the mount points from being written during the time the partitions were unmounted?