CD Won't Eject With "eject" Command
I can mount and unmount my CD Rom, but when I unmount the drive and then type eject -r, I get the message:
eject: unable to eject, last error: Device or resource busy If I run the KsCD player and hit the eject button, it says "ejecting" but nothing happens. I can then press the button on the CD drive and it will open up. Then I can put another CD in and mount it ok. Slack 9.1 I tried to install UT2003 and everytime it copies a file, it tries to mount the CD Drive and Floppy drive... then it says it is already mounted (wich it is). Makes it install real slow. If I put a floppy in the drive, it stops trying to mount it, but then it says this while it's installing: Decompressed ../someFile.ut2.uz2 -> ../someFile.ut2 mount: block device /dev/cdrom is write-protected , mounting read-only mount: /dev/cdrom already mounted or /mnt/cdrom busy mount: according to mtab, /dev/hdc is already mounted on /mnt/cdrom Decompressed ../anotherFile.ut2.uz2 -> ../anotherFile.ut2 mount: block device /dev/cdrom is write-protected , mounting read-only mount: /dev/cdrom already mounted or /mnt/cdrom busy mount: according to mtab, /dev/hdc is already mounted on /mnt/cdrom Decompressed ../anotherFile2.ut2.uz2 -> ../anotherFile2.ut2 . . . |
AFAIK you can only type eject to eject the cd while its already mounted, which will unmount it and then eject it. If its unmounted already, well then, that's why your getting that message.
|
the ut2003 cd install is very clunky, you will need 2 terminal windows open:
in first terminal type: mount /dev/cdrom cd ~ /mnt/cdrom/[setup executable] then run it and minimise term in second term login as root (su) then when it asks for new disk use umount command on it, then next 3 times it asks to change cd's it will auto unmount :-P (do not retype moutn command after inserting second cd it asks for just hit ok it will automount. then as for floppy I ignore the probs, but you can also do this: [as root][ cp /etc/fstab /etc/fsback then edit the /etc/fstab and remove floppy line save and run install restore backup after. |
Quote:
EDIT: Forget that, what I mean to say it, I can't eject it if it's mounted either. |
Quote:
I am logged in as root. |
I was only addressing the ut issue, I can't asnwer the eject issue, maybe you need to chmod 777 /dev/cdrom?
|
Well I set up another account and i su root and i can mount the cdrom drive, but when I try to unmount it, it says
umount: /mnt/cdrom: device is busy umount: /mnt/cdrom: device is busy I can't unmount it or eject it or anyting. I logged out, logged back in as root, startx and Konqueror says it's mounted and I can run the CD Rom application and hit eject and then hit the button and the cd will eject although it says it's still mounted. :D I can close drawer, open drawer, close drawer and I can't unmount it, mount it or anything... |
its probably a probem caused by uogu (use of graphical utilities) they cause all kinds of trouble.
|
Well all I know is it gets stuck and I can't unstick it, even if I am logged out of KDE... I have to shutdown and the shutdown process will let go of it and I can eject the CD before the power is turned off.
I finally got UT2003 all the way installed by logging in as root and letting the install script do the mount and dismount. I used the CD Player Eject function to do whatever it did to allow me to eject the disk and put the next one in. I updated to the latesest GeForce drivers and UT2003 runs great. I tried anther CD drive to see if it did the same... and it did... I think something still isn't set right. Thanks everyone. :) |
about the CD.
I remember reading, that some CDplayers lock up automatically after inserting a CD. This is a hardware matter which is being notified to the system with the `device is busy` error. Furthermore it is being notified by/to the driver by a "has a lock ability" feature or something of the kind. I got the same error message with my Plextor a couple of times. But each time the eject program released (unlocked) the CD and ejected normally. Can`t remember if there is command to force an unlock, I only had the idea that "eject" tries to unlock the CD before ejecting. It is possible something is marked in the source of the cdrom drive under the kernel directory tree. |
I loaded up GNOME and using it to mount and unmount screws it all up too. I can manage to "unstick" it in GNOME and it will mount, unmount, eject in the terminal just fine. In KDE it gets stuck and I can't get it to eject.
BTW, I can eject at the terminal if it is mounted or unmounted... that has nothing to do with it. As long as I don't try and view the contents in Konquerer or use it to mount/unmount it works fine in the terminal. |
Quote:
If this is the case, my remark still holds, all beit that we have to be clear on certain points. 1) Ejecting a mounted cd is the same as ejecting from a helicopter ...:tisk: not done ... offcourse it IS possible that 'eject', the program, tries to unmount it for you, possibly it also checks on the lock feature. ( actualy I am quit sure it is able to unlock, because it does it on MY cdplayer ) 2) If a CD is UNmounted it should eject, if it does NOT have the dratted lock feature, that is. Every time! Else you do have an exceptionally weird machine ... either that or it IS made on halloween ... I suggest a simple test: put a CD in your player. Do not mount, or if it automounts unmount it. Be sure it is NOT mounted or anything. Don't try to do anything with software, just hit the eject button. Then try to mount it and just unmount it. Again try to eject it with the button. If it does not come out on these occasions, you have a lock feature on your CDplayer. Which means software/programs have to unlock prior to try to eject it or they will fail or give weird errors :D. I am not totaly convinced every programmer already knew/acknowledged the feature of locking/unlocking a CD in a player. Which very well could mean that one program could get your cd out of the player and another ...:scratch: |
Basically within the graphical utilities, once the CD is unmounted it will not eject immediatley. If I wait a few minutes and hit the button, it will work. Does it in Gentoo also. Does it with another CD drive too. Oh Wells :p
|
my quick solution:
mount /dev/cdrom cd .. eject /dev/cdrom and it worked :P hopefully it will for you too btw i didn't read your guys's posts above so sry if i repeated this |
All times are GMT -5. The time now is 02:39 AM. |