check the mount points in linux code example Example: linux find where file is mounted df -Ph $filename