LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-29-2004, 01:04 PM   #1
pcd007
LQ Newbie
 
Registered: Mar 2004
Location: MH - India
Distribution: SuSE,Knoppix, Slackware
Posts: 13

Rep: Reputation: 0
Cannot eject CD in Slackware 10


I am using Slackware 10 with kernel 2.4 (default).I have a LG CD writer which is having problems with eject in KDE, i think. It all works well before I start X-server. I can eject CD using "eject" command; even mounted CDs are ejected by simply using "eject". But when I start KDE using startx I can no longer eject the CD but I can still mount and unmount it. Whenever I try to eject the CD I get a KDE eject error "Eject /dev/hdc failed!". Initially I had 2 entries in my fstab one for /dev/hdc and other for /dev/cdrom. I removed one entry as I have only one CD-writer. This is how my fstab looks like:

/dev/hda1 swap swap defaults 0 0
/dev/hda2 / reiserfs defaults 1 1
/dev/hda5 /data2 reiserfs defaults 1 2
/dev/hda6 /data1 ext3 defaults 1 2
/dev/hdc /mnt/cdrom iso9660 noauto,users 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

The problem has become more complicated as sometimes I can eject in KDE from the shell using "eject". But if I mount it from Konqueror and then try to eject it from the terminal I get the error "eject: unable to eject, last error: Invalid argument". If I try again after sometime from the terminal(Konsole) using eject will eject the CD, only leaving me wonder more! SOMETIMES EVEN KONQUEROR WILL EJECT THE CD, but only sometimes. I am really clueless about the cause of the problem.

I tried Google but I couldn't get much help. Can someone provide me with some hint in the right direction so I can just eject the CD from the KDE, using Konqueror?
 
Old 09-29-2004, 04:44 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 22,974
Blog Entries: 11

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
First things first :)

Which kernel are you using?


Cheers,
Tink
 
Old 09-30-2004, 06:48 AM   #3
pcd007
LQ Newbie
 
Registered: Mar 2004
Location: MH - India
Distribution: SuSE,Knoppix, Slackware
Posts: 13

Original Poster
Rep: Reputation: 0
Hi,
I am using the default kernal provided with Slackware 10 i.e. Ver. 2.4.26
And the KDE version is 3.2.3
 
Old 09-30-2004, 09:13 AM   #4
Biased turkey
Member
 
Registered: Jan 2002
Location: Canada
Distribution: redhat7.2
Posts: 169

Rep: Reputation: 30
First, shouldn't /dev/cdrom be a link pointing to /dev/hdc ?

What I would try first is to remove the autorun for the cdrom ( I think it's in the "start here " directory.
Or maybe you have an application ( maybe konqueror ) accessing your cdrom directory.
 
Old 09-30-2004, 09:16 AM   #5
JNK
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
Same thing happens to me! I just mount the drive and unmount it again then eject and it seems to free everything up again. Beats me whats causing it though.
 
Old 09-30-2004, 01:33 PM   #6
pcd007
LQ Newbie
 
Registered: Mar 2004
Location: MH - India
Distribution: SuSE,Knoppix, Slackware
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Biased turkey
I think it's in the "start here " directory.
I think "start here" directory is for gnome, I tried " file:/home/UserName/.kde/Autostart/" though but the directory is empty. What bugs me is the inconsistency, sometimes Konquerror will eject the CD other times it won't giving a nice little error "Eject /dev/hdc failed!". I'll look for an application accessing the CDROM but why would an application Lock the unmounted CD-ROM? I've learned that CD-ROMs are locked when mounted, i wonder why that lock is not being removed after unmounting the CD.

I tried mounting and unmounting CD again as suggested by JNK but no luck.

I am still clueless about what is causing this problem.
 
Old 09-30-2004, 11:08 PM   #7
user_of_slack
LQ Newbie
 
Registered: Sep 2004
Distribution: Slackware 10.0
Posts: 14

Rep: Reputation: 0
I wanted to write and convey I too am having this problem. I had 11 disks of data I wanted to transfer to my system and it was a pain in the butt. During initial Slack install, the CD popped out, asked me to insert another disk and there was no problem.

When I wanted to add my data later via CD that is when I had problems. Maybe this is just a general permissions issue?

I changed my fstab file to various configurations based on information I found on this site and the Internet, I rebooted I tried again. I tried many many things.

I logged on as root and logged on as a user.

I could access the CD if the CD is in the drive with any user. Choosing to eject it fails. Most times. Other times, from the terminal, in a KDE enviorment, I could eject it with eject /dev/cdrom

Other times it would fail. SOMETIMES it works. I can mount and then unmount it but usually eject always fails. Here is another aspect. I was having this problem ejecting and then I installed k3b Burner (k3b.org) Using that program as root, I can eject, burn and load another disk From command prompt, from KDE alone choosing device eject, failure.

I also logged in in terminal only, and other options, not just KDE.

Back to what I was saying about loading the disks... I ended up, most times, logging out, and pushing the cd button, sometimes it would eject, other times it wouldn't so I rebooted, as the system came back up I ejected the disk and put another one in. Then as any user, I could access it via the command line or via KDE. I could copy the disk. But then trying to eject and put another disk in.. No Go. I would reboot and do the same procedure.

It really is the only issue I have. I moved all my data from CD to my system. IF want to burn, k3b works fine so it is not an issue I am that concerned about but it is an annoyance and like others have posted, it is just frustrating not knowing what is the issue.
 
Old 10-01-2004, 04:03 AM   #8
JNK
LQ Newbie
 
Registered: Sep 2004
Posts: 5

Rep: Reputation: 0
I seem to be getting consistant results when I unmount twice the second time it says the cd is already unmounted and then I can eject the cd. Can anyone confirm this?
 
Old 10-01-2004, 05:12 AM   #9
pcd007
LQ Newbie
 
Registered: Mar 2004
Location: MH - India
Distribution: SuSE,Knoppix, Slackware
Posts: 13

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by JNK
I seem to be getting consistant results when I unmount twice the second time it says the cd is already unmounted and then I can eject the cd. Can anyone confirm this?
no luck here; when I try to unmount it twice I get an error "/dev/hdc is not mounted (according to mtab)" but eject would fail."
 
Old 10-01-2004, 07:08 AM   #10
pcd007
LQ Newbie
 
Registered: Mar 2004
Location: MH - India
Distribution: SuSE,Knoppix, Slackware
Posts: 13

Original Poster
Rep: Reputation: 0
Is that Audio CD Browser in the services tab causing the problem? I am gonna find out a way to disable it and then check if I can eject the CD or not. Any suggestions on how to disable the Audio CD Browser?
 
Old 10-01-2004, 09:52 AM   #11
justin_p
Member
 
Registered: Jan 2004
Location: Virginia, USA
Distribution: slack 13; I've used it all :)
Posts: 433

Rep: Reputation: 30
if you are using kde, go into the control center and check the boxes to have the unmounted and mounted cdrom icons on the desktop. This is under Control Center under appearance I think (sorry DLG user). It should now be as easy as right click to mount or unmount. You may have to eject by hand.
 
Old 10-01-2004, 11:25 PM   #12
pcd007
LQ Newbie
 
Registered: Mar 2004
Location: MH - India
Distribution: SuSE,Knoppix, Slackware
Posts: 13

Original Poster
Rep: Reputation: 0
Thanks justin_p, the mount and unmount CD-ROM icons on the desktop seem to work.But I think I found a way to eject CDs in Konqueror.

I think the problem was caused by "Audio CD Browser" in the Services tab of the navigation panel. The services tab is the default tab in the konqueror. I made Devices tab my default tab by clicking on it and then by saving the profile, option for saving the profile is under Settings menu. Now every time I start konqueror I get Devices as the default tab and the CD ejects properly.

I tried to verify this by clicking on the services tab and yes, the eject failed!

I think I solved the problem for now. But I am looking for a way to disable Audio CD Browser permanently. Any suggestions on how to do that will be appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to eject a CD skie_knite007 Programming 7 11-24-2011 10:50 AM
VCD does not eject even eject button pressed ic_torres Linux - Software 4 12-01-2005 05:40 PM
cd eject? mithereal Debian 6 08-09-2005 09:36 AM
CD Won't Eject With "eject" Command Dr. Ephemeron Slackware 13 11-13-2003 12:27 AM
Cant eject cdrom after slackware-current update windsok Slackware 3 09-19-2003 05:30 AM


All times are GMT -5. The time now is 08:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration