I have a script that backup up files to the external drive each night. The problem is that Nautilus auto mounts the external drive and when the script runs it fails to mount the external drive.
The mount point that the script creates in /mnt/mirror and the mount point the Nautilus creates is /mnt/mirror_
How do I detect if an external drive is already mounted?