View Single Post

   
  #6 (permalink)  
Old 01-05-2008, 09:09 AM
Eric.Jones
 
Posts: n/a
Default Re: check if a filesystem is mounted

Tim Moor wrote:
> dear aix gurus, is the following script realiable to check, if a filesystem is mounted or not ?


A more lightweight method often used is:

When creating the mountpoint directory..
#mkdir /mnt/mymount

Add a marker file in the underlying FS:
#touch /mnt/mymount/warning_mount_missing


Then use a simple presence test for the marker to detect a missing mount.
Note that you probably want to add appropriate chown/chmod, and check owner as well,
to avoid problems with malicious users that have write access.


Eric
Reply With Quote