LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 06-27-2005, 11:42 AM   #1
exit3219
Member
 
Registered: May 2005
Location: Moldova
Distribution: Kubuntu
Posts: 199

Rep: Reputation: 30
CD-ROM won't eject after unmounting


Quick question:
After I access the cd-rom using KDE, I cannot eject it. I am a non-root user, member of the 'cdrom' group, using Debian Sarge. If I open Konqueror, select the CD-ROM in Devices and choose 'Eject', it sais 'Eject /dev/hdc failed.'
If I press the CD's eject button (on the hardware, I mean), it doesn't do anything.

I only can eject the cdrom if I logout from KDE.

How can I fix this?

Thanks.
 
Old 06-27-2005, 11:54 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
what happens if you type:
Code:
eject /dev/hdc
at a terminal, both as a regular user and as root??
 
Old 06-27-2005, 02:04 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
The eject button will not function as long as the CD is mounted. The eject command will unmount the CD but nothing can be accessing the file system. Be sure to close Konqueror or switch it to another directory and close any terminals that are accessing the drive prior to ejecting.
 
Old 06-27-2005, 04:07 PM   #4
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
there is also a bug in konqueror that causes this...something to do with the side navigation bars...it's on kde.org bugtraq
 
Old 06-28-2005, 05:01 AM   #5
exit3219
Member
 
Registered: May 2005
Location: Moldova
Distribution: Kubuntu
Posts: 199

Original Poster
Rep: Reputation: 30
Thanks for the answers.

If I run eject as a normal user, I get
Code:
eject: unable to eject, last error: Invalid argument
and the CD doesn't come out. If I run eject as root, it comes out, but throws the same error message (but at least it does come out).

Here's my /etc/fstab for /dev/hdc:
Code:
/dev/hdc        /media/cdrom0   iso9660 ro,user,noauto  0       0
Here's something else (only relevant parts):
Code:
$ ll hdc
brw-rw----  1 root cdrom 22, 0 2005-06-28 11:50 hdc

/media$ ls -la
lrwxrwxrwx   1 root root    6 2005-06-19 17:51 cdrom -> cdrom0
drwxr-xr-x   2 root root 4096 2005-06-19 17:51 cdrom0		(either it is mounted or not)

$ whoami;groups
exit
exit root daemon bin disk mail news dialout cdrom floppy audio dip src video plugdev games users gdm
As you see, I'm part of the cdrom group, which owns /dev/hdc. Should I chgrp cdrom /media/cdrom0 ?

(I have done a ln -s /media/cdrom0 /cdrom to navigate faster.)

If I do (as a normal user)
Code:
$ mount /cdrom
$eject /cdrom
then it gets ejected. But if I use Konqueror to mount / eject the cd-rom, it works only if I haven't accessed any file from the CD. If I accessed a file and then closed the program that opened it, it sais 'Eject /dev/hdc failed.' and I have to open Konsole, su, and then eject as root. This is not quite cool to do!
 
Old 07-04-2005, 03:01 AM   #6
exit3219
Member
 
Registered: May 2005
Location: Moldova
Distribution: Kubuntu
Posts: 199

Original Poster
Rep: Reputation: 30
Any ideas?
 
Old 07-13-2005, 12:52 AM   #7
Delphi123
LQ Newbie
 
Registered: Jun 2005
Distribution: Scientific Linux
Posts: 24

Rep: Reputation: 15
Dear exit3219:

I have the exact same problem, precisely, using Debian Sarge. But fortunately I was able to test this command because I have a second DVD/CD cdrom1 drive. When I type:

eject /dev/hdd

the second cdrom1 drive opens and ejects my DVD. But when I type the exact same command for the first cd drive:

eject /dev/hdc

I get the same "invalid argument" error message. This can not be. What's good for the good is good for the gander. There must be some configuration error somewhere, but I don't know. Will report if I find the answer.

Benjamin
 
  


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
cd rom eject help kingroo Linux - Hardware 6 09-29-2004 11:25 AM
Cd-Rom Must Be Unmounted to Eject mooreted Slackware 2 04-06-2004 07:53 PM
CD-ROM drives not unmounting rehab junkie Debian 8 12-18-2003 03:09 PM
Unmounting the CD-ROM?? Mustard010 Linux - General 8 12-05-2003 10:54 AM
can't eject dvd rom boda Linux - General 4 08-31-2003 03:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:50 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