CD/DVD button EJECT don't umnount CD

OpenSUSE 13.1
KDE 4.11.5
Kernel Linux 3.11.10-17-desktop

CD/DVD **drive ****physical **button EJECT don’t umnount CD.
Disk eject after I press button, but disc is still mounted.

Therefore it is impossible use other discs until unmounted first.

That is normal behaviour. You should unmount any file system (often called save removal, the word ‘save’ gives hint why) before physical removal. Bonus is that it will open the case for you without reaching for the button. And of course mount a new file system after it is connected.

On 2014-07-13 13:06, hcvv wrote:
>
> MozgFx;2653714 Wrote:
>> OpenSUSE 13.1
>> KDE 4.11.5
>> Kernel Linux 3.11.10-17-desktop
>>
>> CD/DVD *drive **physical *button EJECT don’t umnount CD.
>> Disk eject after I press button, but disc is still mounted.
>>
>> Therefore it is impossible use other discs until unmounted first.
> That is normal behaviour. You should unmount any file system (often
> called save removal, the word ‘save’ gives hint why) before physical
> removal. Bonus is that it will open the case for you without reaching
> for the button. And of course mount a new file system after it is
> connected.

Yes and no…

The system could detect and intercept the button press event, umount the device, then eject it.

In fact, that is exactly what happens here:


Telcontar:~ # mount | grep dvd
/dev/sr0 on /mnt/dvd type udf (ro,nosuid,nodev,noexec,relatime,utf8,user=cer)

(press eject here)

Telcontar:~ # mount | grep dvd
Telcontar:~ #

It is done by dbus-daemon:


<3.6> 2014-07-13 14:20:48 Telcontar dbus-daemon 1041 - -  **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:1f.2/ata10/host9/target9:0:1/9:0:1:0/block/sdf
<3.6> 2014-07-13 14:21:24 Telcontar dbus-daemon 1041 - -  **** CHANGING /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:24 Telcontar dbus-daemon 1041 - -  **** UPDATING /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:24 Telcontar dbus-daemon 1041 - -  **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<0.4> 2014-07-13 14:21:24 Telcontar kernel - - - [421887.261859] VFS: busy inodes on changed media or resized disk sr0
<3.6> 2014-07-13 14:21:24 Telcontar dbus-daemon 1041 - -  **** NOTE: Force unmounting device /dev/sr0
<3.6> 2014-07-13 14:21:24 Telcontar dbus-daemon 1041 - -  **** EMITTING JOB-CHANGED for /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:24 Telcontar dbus-daemon 1041 - -  helper(pid 16604): launched job umount on /dev/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** CHANGED /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** CHANGING /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** UPDATING /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** NOTE: Force unmounting device /dev/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  (udisks-daemon:9712): udisks-daemon-WARNING **: There is already a job running
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  (udisks-daemon:9712): udisks-daemon-WARNING **: Couldn't spawn unmount for force unmounting /mnt/dvd
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** CHANGED /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** /proc/self/mountinfo changed
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** UNMOUNTED /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** CHANGING /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** UPDATING /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** EMITTING CHANGED for /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** CHANGED /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  helper(pid 16604): completed with exit code 0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** NOTE: Successfully force unmounted device /dev/sr0
<3.6> 2014-07-13 14:21:25 Telcontar dbus-daemon 1041 - -  **** UPDATING /sys/devices/pci0000:00/0000:00:1f.5/ata12/host11/target11:0:0/11:0:0:0/block/sr0

I mount the DVD via command line and fstab entry, and XFCE desktop.

On other occasion, probably other releases, the eject button was simply ignored.
Then I had to umount the dvd manually, and try the button again - or instead use the “eject” command.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

This is KDE 4.x bug ?
Or system bug?

To check kernel commands I’m use in terminal:

udevadm monitor

I think it is a KDE bug. I have noticed that when I eject a device it does not disappear from dolphin until I restart it.