DIGIT-ARC read-only archive · snapshot: July 23, 2026

A nifty tool to open & close cd/dvd drive

20 posts · originally from https://geek.digit.in/community/threads/a-nifty-tool-to-open-close-cd-dvd-drive.55245/

topgear
topgear Original post #1
Apr 16, 2007 at 9:07 PM
There is a nifty little open source:) tool available called "cdslave" which opens & closes your cd/dvd drives tray plus a bunch of other features such as explore, autoplay all is accessible from the system tray. Features:

Open, close, browse and autorun your cdrom drive's with mouse, hotkey's or menu;
Show disk status in tray icon:
Disk type: Data, DVD-Video or Audio;
More information in tray icon hint (disk caption, icon, size, track's count and etc.);
Autoclose drive after selected period of time;
Multilanguage interface;
Also supports Command line parameters.

*adsoft.nm.ru/cdslave.html

*adsoft.nm.ru/download.html -- in this link you will find other stuffs to download by adsoft
sauravktr
Apr 17, 2007 at 3:12 AM
thanks
gary4gar
Apr 17, 2007 at 1:28 PM
Even u can do it by
Code:
$eject -T
M
Apr 17, 2007 at 1:44 PM
That tool is for windows, but I have left if here cos it includes source code but I can't ascertain about the development model, whether it follows FOSS model or not. I have no clue what language that web site it is in.
anantkhaitan
Apr 17, 2007 at 3:13 PM
I have two drives but this
$ eject -T
always opens and closes my cd drive..

It has no effect on my other drive
M
Apr 17, 2007 at 4:17 PM
eject -T /dev/cdrom1 or whatever your other drive is called.
freebird
Apr 17, 2007 at 4:46 PM
now a days with hal i think,In my debian i can eject as easy as pressing the cd/dvd drives button.yeah,the same way windows does.Yes it will umount and eject a mounted CD/DVD.guys anyone tried this?:)
satyamy
satyamy #9
Apr 17, 2007 at 4:49 PM
gary4gar said:
Even u can do it by
Code:
$eject -T
how will this work
M
mehulved #10
Apr 17, 2007 at 7:59 PM
freebird said:
now a days with hal i think,In my debian i can eject as easy as pressing the cd/dvd drives button.yeah,the same way windows does.Yes it will umount and eject a mounted CD/DVD.guys anyone tried this?:)
Doesn't work if you're not using KDE, GNOME or XFCE or am I missing some package?

satyamy said:
how will this work
I don't think it will work on windows.
freebird
freebird #11
Apr 17, 2007 at 8:10 PM
It works very well with gnome 2.18 on Debian

It works very well with my gnome 2.18 on Debian GNU/Linux and Ubuntu Feisty(may be edgy too i forgot).No worries of closing opened nautilus browser for CD/DVD contents>It automatically resets the view to /home/user in nautilus and ejects the CD.:p
It works everytime without any failures.no more umount -f
I am using Debian Sid+experimental as suggested by @praka123by using apt-pinning.for novice users Ubuntu Feisty Fawn with GNOME also acts the same.I think HAL(hardware abstraction layer) is controlling this via dbus-a system wide messaging service
the suspects are [SIZE=-1]gnome-volume-manager, hal pmount etc[/SIZE]
.May be someone using Fedora 6 also can confirm this that ejecting CD drive by pressng the drive button


linux-pc:~# cat /etc/debian_version
lenny/sid
best of Lux @tech future
I found a thread about this:
*easylinux.wordpress.com/2006/04/15/ubuntu-cd-eject/
M
mehulved #12
Apr 17, 2007 at 8:15 PM
freebird fedora? I didn't get the conection of fedora here.
HAL works well for me on GNOME and KDE but not otherwise.
freebird
freebird #13
Apr 17, 2007 at 8:17 PM
I asked if it works in Fedora 6 also someone can confirm?:eek:

when i insert a cd on my Debian box an icon ||r to when u plug inn a usb pendrive is appearing on my GNOME Desktop.earlier it is a CD picture;now it is changed.(i am bad in explaining things).
M
mehulved #14
Apr 17, 2007 at 8:23 PM
Well it has been there with most of the distros with 2.6.18+ kernel if I remember right, so it should be there in FC 6.
BTW, ||| is for similar and || is for parallel.
freebird
freebird #15
Apr 17, 2007 at 8:24 PM
^ for similar .
eddie
eddie #16
Apr 18, 2007 at 1:51 AM
tech_your_future said:
Doesn't work if you're not using KDE, GNOME or XFCE or am I missing some package?
You are missing ivman. Look at gentoo wiki for more on its implementation and usage.
M
mehulved #17
Apr 18, 2007 at 2:10 AM
Thanks eddie, I have installed it will check it when back to fluxbox.
freebird
freebird #18
Apr 18, 2007 at 3:58 AM
I can assure that i dont have ivman installed in my Debian Box.but it works gr8 :)

edit:I think i found the answer.the pkg that controls this eject and auto mount on GNOME is gnome-volume-manager and gnome-mount acting for HAL and dbus in Debian Sid.
gnome-volume-manager=
GNOME daemon to auto-mount and manage media devices
gnome-volume-manager is a GNOME daemon that acts as a policy agent in
top of the kernel, udev, d-bus and HAL. It listens to HAL events and
reacts with user-configurable actions. Currently it supports automount
of new media and hot-plugged devices, autorun, autoplay for CDs and
DVDs, and automatic camera management. It is expected to be simple and
free of polling and other evil hacks.
gnome-mount=
wrapper for (un)mounting and ejecting storage devices
The gnome-mount package contains programs for mounting, unmounting and
ejecting storage devices. The goal for gnome-mount is to get the appropriate
Gnome software (such as gnome-volume-manager and Gnome-VFS) to use his method
instead of invoking mount/umount/eject or direct HAL invoking methods.

All the gnome-mount programs utilize the methods on HAL and as such run
unprivileged. The rationale for gnome-mount is to have a centralized place (in
GConf) where settings (e.g. mount options and mount locations) are maintained.

A nautilus extension allows to easily change the mount options which can be
user, drive or volume specific.
so its for GNOME users..
R
Apr 18, 2007 at 7:34 AM
Thanks I was looking for such a tool
praka123
praka123 #20
Apr 19, 2007 at 1:57 AM
Yes.It works with latest GNOME in Debian and Ubuntu Feisty.