Page 1 of 2 12 LastLast
Results 1 to 10 of 14

Thread: Eject

  1. #1

    Default Eject

    Yes I know this has probably been asked, and answered, but I have not been able to find it, and as I am still working my way thru system, would like any help you can give.

    Apart from KsCD and CD Player, (both of which are pretty good, but very basic), I have found it impossible to eject any music CD or DVD on any of the following:

    Amarok
    JuK
    Media Kaffeine
    MPlayer and
    SMPlayer,

    there does not seem to be any button, command or whatever to get the CD or DVD out of the drive, so now find that only way, is to stop player and then to open CD Player and use the eject button there.

    Am i doing something wrong?

  2. #2
    Join Date
    Jun 2008
    Location
    Berlin
    Posts
    2,061

    Default Re: Eject

    Your list of applications sound as if you use KDE - you should have a device manager, which offers you to eject a CD/DVD (on the very left of each device). I'm not sure whether this still works (I hardly work with "silver" media), if not, you could write some script with the command "eject".

  3. #3
    Join Date
    Aug 2008
    Location
    Behind the 8 ball
    Posts
    116

    Default Re: Eject

    You won't be able to eject if the device is still mounted.

    You should be able to do something like this on the command line.
    Code:
    umount /dev/cdrom && eject
    Good luck,
    Hiatt

  4. #4
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: Eject

    On Tue, 24 May 2011 17:36:04 +0000, jthiatt08 wrote:

    > You won't be able to eject if the device is still mounted.


    Generally the eject command will unmount the volume as well.

    So:

    eject /dev/cdrom

    Should work just fine.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  5. #5
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Eject

    Jim Henderson wrote:
    > So:
    >
    > eject /dev/cdrom
    >
    > Should work just fine.
    >
    > Jim
    >

    Not if the device is still in use by one of the applications the OP listed.
    The umount and eject and any combination will fail.

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

  6. #6
    Join Date
    Jul 2008
    Location
    Seattle, WA
    Posts
    17,317

    Default Re: Eject

    On Tue, 24 May 2011 18:02:56 +0000, martin_helm wrote:

    > Not if the device is still in use by one of the applications the OP
    > listed. The umount and eject and any combination will fail.


    Oh, yes, that's true - thanks for the correction.

    Jim



    --
    Jim Henderson
    openSUSE Forums Administrator
    Forum Use Terms & Conditions at http://tinyurl.com/openSUSE-T-C

  7. #7
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Eject

    You can of course kill the locking process with fuser, but that is nasty as
    hell and not really a viable way. I looked at it with smplayer and an audio
    cd to see what happens, it gives an error message but smplayer still works
    if you click it away and also works if you insert the audio cd again.
    I tested
    Code:
    fuser -km /dev/sr0
    eject /dev/sr0
    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

  8. #8
    Join Date
    Jun 2008
    Location
    Berlin
    Posts
    2,061

    Default Re: Eject

    Um.. sorry to interrupt here, but an audio-CD is not mounted anyway. One can eject them any time, even when it is still playing (just tested with Kaffeine).

    Edit: ...and the KDE-device manager does this fine.

  9. #9
    Join Date
    Feb 2010
    Location
    Germany
    Posts
    4,654

    Default Re: Eject

    gropiuskalle wrote:

    >
    > Um.. sorry to interrupt here, but an audio-CD is not mounted anyway. One
    > can eject them any time, even when it is still playing (just tested with
    > Kaffeine).
    >
    > *Edit:* ...and the KDE-device manager does this fine.
    >

    Thanks, you are right it is not mounted, its audio, I feel stupid, shame.

    --
    PC: oS 11.3 64 bit | Intel Core2 Quad Q8300@2.50GHz | KDE 4.6.3 | GeForce
    9600 GT | 4GB Ram
    Eee PC 1201n: oS 11.4 64 bit | Intel Atom 330@1.60GHz | KDE 4.6.0 | nVidia
    ION | 3GB Ram

  10. #10

    Default Re: Eject

    Quote Originally Posted by leilton View Post
    Yes I know this has probably been asked, and answered, but I have not been able to find it, and as I am still working my way thru system, would like any help you can give.

    Apart from KsCD and CD Player, (both of which are pretty good, but very basic), I have found it impossible to eject any music CD or DVD on any of the following:

    Amarok
    JuK
    Media Kaffeine
    MPlayer and
    SMPlayer,

    there does not seem to be any button, command or whatever to get the CD or DVD out of the drive, so now find that only way, is to stop player and then to open CD Player and use the eject button there.

    Am i doing something wrong?
    I had the same problem, but I was pretty sure it was a permissions issue, and I was right. I went into YasT, and then clicked Security and Users, then User and Group Management. On the user tab, click edit, then the details tab. Here you will see the groups your user profile belongs to under Additional Groups on the right. I just made sure that users, audio, cdrom, disk, and video were ticked. Now I can eject discs properly from my drive. Hope this works for you.

Page 1 of 2 12 LastLast

Posting Permissions

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