LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-24-2008, 03:27 PM   #1
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Rep: Reputation: 75
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.
 
Old 01-24-2008, 06:09 PM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
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.
 
Old 01-24-2008, 09:50 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,367

Rep: Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843Reputation: 843
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.
 
Old 01-25-2008, 02:55 AM   #4
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
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.
 
Old 01-26-2008, 01:13 PM   #5
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
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"
 
Old 01-26-2008, 02:07 PM   #6
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
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...
 
Old 01-26-2008, 04:32 PM   #7
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
/dev/hda is not mounted
 
Old 01-26-2008, 04:35 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Try renaming /usr/lib/kde3/kio_audiocd.so

Bit of a hack but until the problem is addressed...
 
Old 01-26-2008, 04:40 PM   #9
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
I tried that but then kaudiocreator would not rip the CD at all. Some error about ioslave
 
Old 01-26-2008, 04:41 PM   #10
arubin
Senior Member
 
Registered: Mar 2004
Location: Middx UK
Distribution: Slackware64 15.0 (multilib)
Posts: 1,350

Original Poster
Rep: Reputation: 75
I have also discovered that

Quote:
killall kio_audiocd
will then let me eject. This command works without su'ing to root.
 
Old 01-26-2008, 04:48 PM   #11
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Ah I use ripperx so yeah it would be a problem for a kde app.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to Eject a DVDROM carlosinfl Linux - Hardware 4 12-13-2007 01:43 PM
Unable to start HAL (haldaemon) on Fedora 8 x86_64 PsychosisNode Fedora 3 11-15-2007 12:43 AM
Unable to mount/eject. diablo_ Slackware 16 02-04-2007 02:58 AM
Unable to unmount HAL-mounted device dunric Slackware 4 08-24-2006 08:21 AM
Unable to uudecode the HAL. M_frandsen Linux - Wireless Networking 3 07-23-2004 05:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:41 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration