SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Anybody experiencing problems ejecting optical disks under 14?
I find a few relatively recent reports on the web about the problem. Seems there are a handle of eject-2.1.5 patches floating around too.
Edit: Non root user is a member of disk lp wheel floppy audio video cdrom plugdev power scanner groups. But root can't eject either from the command line until after the drive's eject button is used to eject the disk. Then the eject command works for everybody.
I had a problem this morning. eject command wasn't working from my non-root user but was working ok from root. I rebooted and tried again and it was working again from my non-root user, so it looks like somehow it got itself in a bit of a state.
Really don't like the idea of having to reboot it because it got confused. That's far too reminiscent of the bad old days of MS Windows.
This is starting to look like two separate problems.
First, does "eject -T dvd" work?
1. Without inserting a disk, test "eject -T dvd" several times. The tray should open or close each time.
2. Insert an optical disk.
3. Do not mount the disk.
4. From a terminal, enter "eject -T dvd".
5. Test this as root and non-root.
Second, what triggers /lib/udev/rules.d/75-cd-aliases-generator.rules? In my Slackware 14 run-time testing environment, the rule set seems to be executing correctly to generate a full slew of /dev/dvd* sym links. In my Slackware 14 build environment, I never get any /dev/dvd* sym links. I have reinstalled the udev package and rebooted several times. No sym links in the build environment.
Closing and opening the empty tray with "eject -T /device" works as expected.
Loading a DVD in the tray, closing it and trying to open it as my regular user with any form of eject fails.
$ eject -T
$ eject -T /dev/sr0
$ eject -v /dev/sr0
(I have translated the output to english)
eject: the name of the device is /dev/sr0
eject: the extended name is `/dev/sr0'
eject: `/dev/sr0' is not mounted
eject: `/dev/sr0' is not a mount point
eject: `/dev/sr0' is not a device with multiple partitions.
eject: trying to eject `/dev/sr0' using the eject command for CD-ROM
eject: eject command for CD-ROM failed
eject: trying to eject `/dev/sr0' using the eject command for SCSI
eject: eject command for SCSI failed.
eject: trying to eject `/dev/sr0' using the eject command for floppies
eject: eject command for floppies failed.
eject: trying to eject `/dev/sr0' using the eject command for tapes
eject: eject command for tapes failed.
eject: unable to eject, last error: ioctl function not adecuate for the device.
The root user has no problems.
Manual ejecting works as expected (pressing the physical button).
No worthy output is taken from dmesg or /var/messages.
Last edited by BlackRider; 09-16-2012 at 05:19 AM.
Yes Yes Yes Yes Yes As expected
No Yes Yes Yes Yes As expected
Yes No Yes Yes No: error is ‘eject:: unable to eject, last error: Inappropriate ioctl for device’ Unable to eject
No No Yes Yes Yes As expected
Yes Yes No Yes Yes As expected
No Yes No Yes Yes As expected
Yes No No No: error is ‘eject: unable to eject, last error: Inappropriate ioctl for device’ Cannot test Unable to eject
No No No Yes Yes As expected
My conclusion is that there is a problem with permissions somewhere.
Last edited by allend; 09-16-2012 at 10:43 AM.
Reason: Trying to create a readable table
It seems it is fault of udev. Killing udevd makes eject work as expected.
I have tested by:
Opening the tray with eject -T as regular user.
Placing a DVD on the tray.
Closing the tray with eject -T
Mounting the DVD on /mnt as root.
Trying eject -T as regular user (it fails because a regular user cannot umount the filesystem)
Umount the DVD as root.
Eject as regular user with eject -T (it works!)