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!