public static boolean isMounted(File mountPath)
	{
		if (Environment.isWindows())
		{
			File[] roots = File.listRoots();
			for (File f : roots)
				if (f.getAbsolutePath().charAt(0) == mountPath.getAbsolutePath().charAt(0))
					return true;
			return false; // mountPath.exists();
		}
		try {
		    Process child = Runtime.getRuntime().exec("mount");

		    InputStream in = child.getInputStream();
		    int c;
		    String s = "";
		    while ((c = in.read()) != -1) {
		        s += (char)c;
		    }
		    in.close();
		    return s.contains(mountPath.getAbsolutePath());
		} catch (Exception e) {
			return false;
		}
	}