Results 1 to 5 of 5

Thread: CD/DVD button EJECT don't umnount CD

  1. #1
    Join Date
    Jan 2013
    Location
    Krasnodar, Russia
    Posts
    8

    Exclamation 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.

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,171

    Default Re: CD/DVD button EJECT don't umnount CD

    Quote Originally Posted by MozgFx View Post
    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.
    Henk van Velden

  3. #3
    Join Date
    Feb 2009
    Location
    Spain
    Posts
    25,547

    Default Re: CD/DVD button EJECT don't umnount CD

    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:


    Code:
    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:


    Code:
    <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)

  4. #4
    Join Date
    Jan 2013
    Location
    Krasnodar, Russia
    Posts
    8

    Default Re: CD/DVD button EJECT don't umnount CD

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

    To check kernel commands I'm use in terminal:
    Code:
    udevadm monitor

  5. #5
    Join Date
    Nov 2013
    Location
    Canadiana
    Posts
    461

    Default Re: CD/DVD button EJECT don't umnount CD

    Quote Originally Posted by MozgFx View Post
    This is KDE 4.x bug ?
    Or system bug?

    To check kernel commands I'm use in terminal:
    Code:
    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.
    openSUSE Leap (42.1) 64 bit
    Plasma 5.4

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •