eject cdrom

Utilities

Source (required if based on other people's work): Add the source-code for this project on git.opendesktop.org

0
Score 65%
Description:

Eject Cdrom, forcefully ejects your cdrom/cdwriter device.

It is especially useful when you are in a hurry, and don't know which application is using the cdrom device. Instead of pressing the Reset Button use Eject Cdrom

Eject Cdrom, will try the "normal" eject first, if it fails then it will forcefully eject the cdrom.

Make sure that you have your cdrom device linked to /dev/cdrom, check with:

ls -l /dev/cdrom

if you get
/dev/cdrom -> /dev/hdd (or something) then it is ok

else create a symbolic link:
ln -sf /dev/hdd /dev/cdrom (or)
ln -sf /dev/hdc /dev/cdrom

How to Install:
just save the eject.desktop file on your desktop or add to your menu. just click it to eject your cdrom (normally else forcefully)!

Requirements:
cdrecord (for forced ejection) and/or eject (for normal ejection of cdrom)



Load/Unload or insert/eject cdrom script:
-----------------------------------
# cdrom load/unload script
if [ -e ~/.cdmounted ];
then
echo loaded or cdmounted trying to eject &&
eject && echo trying to eject normally &&
rm ~/.cdmounted && exit ||
echo normal ejection failed, trying forced eject &&
cdrecord -eject dev=/dev/cdrom &&
rm ~/.cdmounted && exit ;
else cdrecord -load dev=/dev/cdrom &&
touch ~/.cdmounted;
fi
-------------------------------------
Last changelog:

13 years ago

1.0 initial release

AlexeyK

13 years ago

GenericName[ru]=Принудительное извлечение привода CDROM или CDRW

Name[ru]=Извлечь привод CD-ROM

Comment[ru]=Принудительное извлечение привода CDROM или CDRW

Report

DIHLOFOS

13 years ago

Sometimes you need to get some “real” work done.
This would be useful:
- spin/stop a hard disk, fans
- use/not use RAM
- blink LEDs
- don't crash within next 10 minutes
- actually work

Report

BorgQueen

13 years ago

Hey I was wondering if you can make a close drive menu? You know, hit the .desktop and the cdrom closes etc.

I'm going to try and see if I can do it myself but I'm still new to Gnu Linux.

Thanks again,

The Borg Queen

Report

dancelis

13 years ago

try eject -t

Report

BorgQueen

13 years ago

Hey Thanks!
There's so much I need to learn.
What a wonderful (open source) world!
(It must be killing M$)

The Borg Queen

Report

jeffers1957

13 years ago

eject -t closes the CD tray so it is not hard to add this to the script in eject.desktop and renaming it close.desktop and save to desktop then you have 2 icons one for opening and one for closing.

I'm no Linux guru but no doubt with a bit of fiddling about the two could be combined.

Report

BorgQueen

13 years ago

Yes, I already did it. I took dancelis' instructs to use eject -t and added the needed /dev/xxx to control a given device.

I've adapted your eject.desktop to do the following, load and now mount. So I have 3 .desktops per device. I can also use it to eject my zip drives. Very cool.

The only thing it doesn't do, which I'm assuming there's a way to do this, is unmount the drive once I use the mount.desktop. There must be a way to force unmount. The system refuses to unmount a cdrom if konq is opened to the given media. Which is silly I think.

Thanks to you both,

The Borg Queen

Report

BorgQueen

13 years ago

I love it! I'm adapting it to eject all my ejectable removable media. Both cdroms, zip drives, anything with an eject capability.

It really helps since my computer isn't within arm's reach. I just eject via my little taskbar menu and stretch over to the ejected media. Saves me a great deal of time and hassle.

Its KDE's nifty little things that make it such a great DTE to use. One actually gets work done, rather than dealing with nonesense. And its little things like "eject cdrom", that make it more so.

Well done you! Don't let anyone tell you, your contribution is a waste of time.

Thank you,

The Borg Queen

Report

trancelis

13 years ago

When I wanna eject the cd/dvd, I just press the eject button on the rom, letting HAL handle the rest of the stuff... that's the button's purpose, innit ?? I don't get what's this thingy for...

Report

C

maarizwan

13 years ago

not all GNU/Linux has HAL+DBUS+kernel 2.6, hence, one is stuck with cdrom. BTW, I know supermount very well. But because of the stubborn people who don't want supermount into kernel, this thing could help *normal* users to eject their cdrom, when in trouble. Sometimes, when we insert a *bad* cd, then the cdrom continuously try to seek the sectors (lights just blink continuously) neither we can eject the cd nor we could access it. Then this small "eject cdrom" works wonder. try a very crappy cdrom mouting and eject it...

Report

trancelis

13 years ago

Aah ... okay then :) I'm that kind of person who instead of trying workarounds (like this one, a good one as I see) employs whichever means necessary to make it work the right way :D

Report

13 years ago

1.0 initial release

product-maker 14 31

File (click to download) Version Description Packagetype Architecture Downloads Date Filesize DL OCS-Install
Pling
Details
license
version
1.1
updated Sep 25 2005
added Sep 23 2005
downloads today
0
page views today 0
System Tags app software