There is no robust way how udisks could do this, but on the upstream systemd list we discussed how to do this cleanup under systemd. For udev under upstart there is a hack to call "eject" instead of "cdrom_id --eject" in the udev rule for the eject request, but this relies on udev not running under an unshared mount namespace (i. e. a patch we have in Debian/Ubuntu). I'll look into fixing this the proper way.
** Package changed: udisks2 (Ubuntu) => systemd (Ubuntu) ** Changed in: systemd (Ubuntu) Status: Confirmed => Triaged ** Summary changed: - Disks are not unmounted when physical eject button is used + [udev] Disks are not unmounted when physical eject button is used -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1168742 Title: [udev] Disks are not unmounted when physical eject button is used To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1168742/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs