When pressing the CD drive eject button while the CD is mounted, udisks normally force-unmounts the CD to avoid stale mounts:
**** CHANGING /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.4/1-8.4:1.0/host2/target2:0:0/2:0:0:0/block/sr0 **** UPDATING /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.4/1-8.4:1.0/host2/target2:0:0/2:0:0:0/block/sr0 **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.4/1-8.4:1.0/host2/target2:0:0/2:0:0:0/block/sr0 **** NOTE: Force unmounting device /dev/sr0 **** EMITTING JOB-CHANGED for /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.4/1-8.4:1.0/host2/target2:0:0/2:0:0:0/block/sr0 helper(pid 18840): launched job umount on /dev/sr0 [...] helper(pid 18840): completed with exit code 0 **** NOTE: Successfully force unmounted device /dev/sr0
However, this does not work if the CD is in /etc/fstab, which is still a fairly common setup from older Linux distro installations:
**** CHANGED /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.4/1-8.4:1.0/host2/target2:0:0/2:0:0:0/block/sr0 helper(pid 3113): completed with exit code 0 **** UPDATING /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.4/1-8.4:1.0/host2/target2:0:0/2:0:0:0/block/sr0 **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.4/1-8.4:1.0/host2/target2:0:0/2:0:0:0/block/sr0 **** Unlocking CD-ROM door for /dev/sr0 **** EMITTING JOB-CHANGED for /sys/devices/pci0000:00/0000:00:1d.7/usb1/1-8/1-8.4/1-8.4:1.0/host2/target2:0:0/2:0:0:0/block/sr0
When pressing the CD drive eject button while the CD is mounted, udisks normally force-unmounts the CD to avoid stale mounts:
**** CHANGING /sys/devices/ pci0000: 00/0000: 00:1d.7/ usb1/1- 8/1-8.4/ 1-8.4:1. 0/host2/ target2: 0:0/2:0: 0:0/block/ sr0 pci0000: 00/0000: 00:1d.7/ usb1/1- 8/1-8.4/ 1-8.4:1. 0/host2/ target2: 0:0/2:0: 0:0/block/ sr0 pci0000: 00/0000: 00:1d.7/ usb1/1- 8/1-8.4/ 1-8.4:1. 0/host2/ target2: 0:0/2:0: 0:0/block/ sr0 pci0000: 00/0000: 00:1d.7/ usb1/1- 8/1-8.4/ 1-8.4:1. 0/host2/ target2: 0:0/2:0: 0:0/block/ sr0
**** UPDATING /sys/devices/
**** EMITTING CHANGED for /sys/devices/
**** NOTE: Force unmounting device /dev/sr0
**** EMITTING JOB-CHANGED for /sys/devices/
helper(pid 18840): launched job umount on /dev/sr0
[...]
helper(pid 18840): completed with exit code 0
**** NOTE: Successfully force unmounted device /dev/sr0
However, this does not work if the CD is in /etc/fstab, which is still a fairly common setup from older Linux distro installations:
**** CHANGED /sys/devices/ pci0000: 00/0000: 00:1d.7/ usb1/1- 8/1-8.4/ 1-8.4:1. 0/host2/ target2: 0:0/2:0: 0:0/block/ sr0 pci0000: 00/0000: 00:1d.7/ usb1/1- 8/1-8.4/ 1-8.4:1. 0/host2/ target2: 0:0/2:0: 0:0/block/ sr0 pci0000: 00/0000: 00:1d.7/ usb1/1- 8/1-8.4/ 1-8.4:1. 0/host2/ target2: 0:0/2:0: 0:0/block/ sr0 pci0000: 00/0000: 00:1d.7/ usb1/1- 8/1-8.4/ 1-8.4:1. 0/host2/ target2: 0:0/2:0: 0:0/block/ sr0
helper(pid 3113): completed with exit code 0
**** UPDATING /sys/devices/
**** EMITTING CHANGED for /sys/devices/
**** Unlocking CD-ROM door for /dev/sr0
**** EMITTING JOB-CHANGED for /sys/devices/