Unexpected removal of devices causes stale mount points. Udisks version: 2.1.5 Steps to reproduce: - mount device (label: STICKY) - physically remove device without unmounting (accidents happen;) - reinsert and mount device Expected results: - device is mounted under /media/STICKY Actual results: - device is mounted under /media/STICKY1 (and higher numbers on subsequent tries) - previous mount points get recreated as empty folders if they are not present (e.g. if removing them via rmdir /media/* before re-insertion) This behaviour is not deterministic. Sometimes the mount point is correctly cleaned up and the device can be remounted under the same mount point again. Failing to clean up after device removal is particularly problematic when a luks partition is disconnected (some of my external drives have loose USB/power connections). In this case the mapper device stays open, and I cannot remount without closing the device as root (cryptsetup luksClose). Should I post this as a separate issue? For reference, this issue was originally posted on: https://github.com/coldfix/udiskie/issues/63#issuecomment-95935259 Best regards, Thomas
This is fixed in a better/more robust way in systemd now. Stale mounts get cleaned up when the underlying device goes away. So I'm closing this. Thanks!
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.