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?
:confused:

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

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.


umount /dev/cdrom && eject

Good luck,
Hiatt

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

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

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

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


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

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.

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

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.

Oh and reboot. :slight_smile: It might work if you just log out and back in, but I did a reboot.

On 2011-05-25 20:06, Kinzie wrote:
>
> Oh and reboot. :slight_smile: It might work if you just log out and back in, but I
> did a reboot.

Most certainly it would work.


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)

are you facing permission issues or just lack of buttons in those players ?

May I thank everyone who replied to my thread.

Special thanks to Kinzie, worked a treat.

Obviously this thread is now closed.

Watch for next, its a beaut.

Again thanks.