View Single Post

   
  #5 (permalink)  
Old 01-05-2008, 10:09 AM
steven_nospam at Yahoo! Canada
 
Posts: n/a
Default Re: check if a filesystem is mounted

Actually Tim, Looking it over, your file system checking for "/" may
actually match the root mount point when your file system is not
mounted. based on the test I just did, you should probably try to
compare the file system name to the same name...in other words

if test "$MOUNT_POINT" = "/comx/data"
then
echo "File System is mounted"
else
echo "not mounted"
fi

(This is why I should never try to answer usenet before my morning
coffee...)

Reply With Quote