private void unmountFoldersOnLinux() {
		if (!getType().equalsIgnoreCase("smb")
				&& !getType().equalsIgnoreCase("nfs")) {
			// TODO: find better way to throw errors without needing to add
			// throw declarations everywhere.
			throw new RuntimeException("Nope, invalid mount type " + getType()
					+ " on server [" + getName() + "]" + getIp());
		}

		for (String dir : this.getMountFolders()) {
			switch(getController().unmount(getPath() + "/" + dir)) {
				case 0:
					log("removed mount " + getPath() + "/" + dir);
					break;
				case 1:
					log("removed mount with lock-remove " + getPath() + "/" + dir);
					break;
				case -1:
					log("Error removing mount " + getPath() + "/" + dir);
					break;
			}
		}
	}