2

udisks2 with udiskie are set up to automount USB storage devices. Connecting a pen drive labeled MYDRIVE, it is mounted to:

/media/MYDRIVE

When pulling the drive without prior unmounting, the above directory persists.

Is it possible to get stale mount points be deleted right away?

I've actually seen that happening in an several years old installation of Ubuntu. So it is possible, though perhaps not with udisks2: I don't know what software for managing removable media is part of that installation.

Update: Raised the issue on GitHub.

1

The maintainer of udiskie pointed out that stale mount points not being cleaned up is a bug in udisks2. In fact, after more tests, I can confirm that sometimes the mount point is deleted.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.