Hm, so I can't actually reproduce this. I tried this for ten times, and
it always works. udisks says:

**** 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

and the mount is gone. Originally I thought that udisks would just lack
a code path for not handling forced unmounts of devices where just the
media disappears (like CD-ROMs) instead of the entire device (like USB
sticks).

Does this work with USB sticks for you? I. e. do you get mounts cleaned
up if you just yank them out without proper unmounting/ejecting? (Please
be careful, this could cause data corruption; please at least run "sync"
before you do that).

To get some better logs from your system, please do the following:

 * Ensure that there is no CD-ROM inside, and no stale mount.

 * Open a Terminal and do

    udevadm monitor -e --udev > /tmp/udev.log 2>&1 &
    sudo /usr/lib/udisks/udisks-daemon --replace > /tmp/udisks.log 2>&1

 * Insert a CD, and wait until it gets automounted (You'll get the  icon
on the desktop)

  * Eject it using the drive button, wait a couple of seconds, and
ensure that you get a stale mount.

Press Control-C, then run "fg", press Control-C again (to stop both
monitors), and attach /tmp/udev.log and /tmp/udisks.log here.

Thanks!

** Changed in: udisks (Ubuntu Lucid)
       Status: In Progress => Incomplete

-- 
CD eject but not unmount when using drive button
https://bugs.launchpad.net/bugs/476654
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to