'Reset internal state for a previously mounted directory.'

def _reset(self, device):

    self._mounter = mount.Mount.instance_for_device(self.image, self.mount_dir, self.partition, device)
    mount_name = os.path.basename((self.mount_dir or ''))
    self._mkdir = mount_name.startswith(self.tmp_prefix)
