added check for mounted drive