SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Maybe you could try start kaudio creator from a command line in x terminal (Konsole or xterm)
command: kaudiocreator
Maybe it will output significant error messages in x terminal when eject is not available ?
eject: using default device `cdrom'
eject: device name is `cdrom'
eject: expanded name is `/dev/cdrom'
eject: `/dev/cdrom' is a link to `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: trying to eject `/dev/sr0' using SCSI commands
eject: SCSI eject failed
eject: trying to eject `/dev/sr0' using floppy eject command
eject: floppy eject command failed
eject: trying to eject `/dev/sr0' using tape offline command
eject: tape offline command failed
eject: unable to eject, last error: Inappropriate ioctl for device
Eject has tried to eject the drive using various different commands, one assuming it's a CD-ROM (used as a generic term including CD-RWs), then when that didn't work it tried again with SCSI and then as a floppy drive, then again as a magnetic tape drive.
It then rather unhelpfully tells us that the last error (the error from ejecting as a tape drive) was inappropriate ioctl, ie that your CD-ROM does not understand tape drive commands.
To get eject to tell us the real problem, we need to know what the error message was when using the CD-ROM. The -r flag will tell eject to only use the CD-ROM command, so can you try running
Code:
eject -rv
and posting the output from that?
It might also be interesting to run the same command as root (since you say this works) and compare the output.
Good catch about the -r option for eject
I think the problem is that kaudiocreator does not release access to /dev/sr0 as shown by lsof output
(so I would say it's not a ioctl error but rather an open error)
kiaudio seems also implicated which may indicate that kaudiocreator plays audio cd tracks or does not issue a stop audio playing command or close device command, I don't know
Starting from 2nd cd, door doesn't open. So, as normal user, we typed:
$>eject -rv
Door does not open and the output shown is:
Code:
eject: using default device `cdrom'
eject: device name is `cdrom'
eject: expanded name is `/dev/cdrom'
eject: `/dev/cdrom' is a link to `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command failed
eject: unable to eject, last error: Input/output error
If I do the same as root, door opens and the output is:
#>eject -rv
Code:
eject: using default device `cdrom'
eject: device name is `cdrom'
eject: expanded name is `/dev/cdrom'
eject: `/dev/cdrom' is a link to `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a multipartition device
eject: trying to eject `/dev/sr0' using CD-ROM eject command
eject: CD-ROM eject command succeeded
Save it as myeject.c for example, compile it and execute it:
Code:
gcc -o myeject myeject.c
./myeject
See if it outputs a more meaningful error message
When trying to compile with gcc -o myeject myeject.c, I get the following error message:
Code:
myeject.c: In function 'main':
myeject.c:12: warning: incompatible implicit declaration of built-in function 'exit'
myeject.c:17: warning: incompatible implicit declaration of built-in function 'exit'
I tried kaudio creater in my computer and the same happens:
First cd ripping finishes and you can eject the cd. CD #2 and successive aren't ejected. If I execute myeject, the following error message appears:
Code:
ioctl error: Input/output error
As before, if I become root, I can eject CD.
I really don't know what is going on but this seems to be a problem with ripping software since the same happens in both computers. Do you have Kaudio Creator installed? If so, please, give it a try to see if this happens to you too.
Hey what about make your special eject command
add this to your ~/.bashrc:
Code:
alias myeject="killall kio_audio && eject"
I have Kaudio Creator installed, and I tried the program above, on my computer myeject ejects the CD even if Kaudio Creator uses it! I admit I did not reproduce your situation though, as I didn't ripped a whole CD and then used another CD. I will try it as soon as I can
[edit]
Also I modified myeject.c to include 2 more error messages
I've never used Kaudio Creator, but I'll give it a try to see what the deal is. In the meanwhile, I would suggest using Kaffeine. The build script is available at slackbuilds.org. All my ripping and burning is via K3B and Kaffeine.
Well, no luck reproducing your experiences. I see from your other thread you're giving Kaffeine a try. Good luck.
I have been playing with any ripping/tagging program/script I can find of late, having just acquired an iPod. I have noticed with some KDE applications over the years that they can, on occasion, not give up their hold on a resource. I have also noticed that KDE often trips over itself on ejecting media. You may want to try checking (or unchecking) the box in Kaudio Creator that specifies that the disk be ejected automaticly after it finishes ripping a cd.
Thanks Franklin for your suggestion!
yes, I will give kaffeine a try. The only problem I had is related to win32codecs not found by kaffeine. I will try to solve that and see what happens.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.