LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Unable to eject CD. ?HAL problem (https://www.linuxquestions.org/questions/slackware-14/unable-to-eject-cd-hal-problem-616094/)

arubin 01-24-2008 03:27 PM

Unable to eject CD. ?HAL problem
 
I have been ripping some audio CDs with kaudiocreator and am finding that I am unable to eject CDs. This does not happen every time, perhaps every other time. I get a message saying CD unmounted but cannot eject. I am unable to eject by pressing the button on the CD drawer.

The one method I have found whereby I can eject the CD is to su to root and issue
Quote:

eject /dev/hda
I have the cdrom line in fstab commented out.and I am joined to plugdev, etc Running slackware 12. I never encountered this problem in 11.

Any help gratefully received.

onebuck 01-24-2008 06:09 PM

Hi,

Did you look at '/etc/udev/rules.d/75-optical-devices.rules'?

Delete the file and restart to see.

Quote:

from '/etc/udev/rules.d/75-optical-devices.rules'

# Local optical devices rules to make links to your
# optical devices
#
# These rules were generated by cdrom-symlinks.sh, but you
# can customize them.
#
# You may edit them as needed.
# (If, for example, your machine has more than one CD or
# DVD drive and you need to be sure they will always be
# given the same symlinks.)
#
# If you delete this file, /lib/udev/cdrom-symlinks.sh will
# try to generate it again the next time udev is started.

ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-1:0", SYMLINK+="cdrom0"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:1f.1-ide-1:0", SYMLINK+="cdrom"

Note the message about symlinks.

T3slider 01-24-2008 09:50 PM

There is probably some app accessing the CD in the background. I had the same issue and couldn't eject the CD until I closed Amarok (even though I didn't access the CD using Amarok at all -- it probably automatically did something when the CD was inserted). I may be wrong though -- I'm just offering the simplest explanation.

arubin 01-25-2008 02:55 AM

Thanks. I will have a look at your suggestions over the weekend. It might prove difficult to sort out because I could not discern a regular pattern to it and because I do not often find myself ripping a pile of CDs like I was last night.

arubin 01-26-2008 01:13 PM

This is curious.

A: I am not mounting the CDs at all. These are audio CDs and I am ripping them to mp3. I do not think there is any problem with data CDs

B: There is no problem with the first CD but with the second CD I cannot open the tray without issuing eject /dev/hda as root.

C: I have configured KDE to 'Do nothing' when I put in an audio CD

D: I am not aware of any other programs accessing the drive

Here is /etc/udev/rules.d/75-optical-devices.rules. I do not think tha it is relevant to the problem


Quote:

ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="cdrom0"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="cdrom"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="dvd0"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="dvd"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="dvdrw0"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="dvdrw"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="dvdwriter0"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="dvdwriter"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="cdr0"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="cdr"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="cdrw0"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="cdrw"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="cdwriter0"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="cdwriter"
ENV{ID_CDROM}=="?*", ENV{ID_PATH}=="pci-0000:00:0d.0-ide-0:0", SYMLINK+="writer"

dive 01-26-2008 02:07 PM

Does the mount command show anything interesting?

I'm also wondering if this is connected to a problem I had. I found via ps that a library - /usr/lib/kde3/kio_audiocd.so - was the problem so I renamed it to kio_audiocd.so.old.

So far so good...

arubin 01-26-2008 04:32 PM

/dev/hda is not mounted

dive 01-26-2008 04:35 PM

Try renaming /usr/lib/kde3/kio_audiocd.so

Bit of a hack but until the problem is addressed...

arubin 01-26-2008 04:40 PM

I tried that but then kaudiocreator would not rip the CD at all. Some error about ioslave

arubin 01-26-2008 04:41 PM

I have also discovered that

Quote:

killall kio_audiocd
will then let me eject. This command works without su'ing to root.

dive 01-26-2008 04:48 PM

Ah I use ripperx so yeah it would be a problem for a kde app.


All times are GMT -5. The time now is 02:15 AM.