*BSD News Article 48605


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!simtel!news.sprintlink.net!newsfeed.internetmci.com!news.mathworks.com!fu-berlin.de!news.belwue.de!news.uni-stuttgart.de!uni-regensburg.de!fauern!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail
From: j@bonnie.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: How to eject CDROM?
Date: 14 Aug 1995 10:45:31 +0200
Organization: Private U**x site, Dresden.
Lines: 18
Message-ID: <40n2fb$j28@bonnie.tcd-dresden.de>
References: <40itj5$3uk@ftp.netgate.net>
Reply-To: joerg_wunsch@uriah.heep.sax.de
NNTP-Posting-Host: 192.109.108.139
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

<awu@ftp.netgate.net> wrote:
>Sorry if this sound silly, but how to eject a CDROM from CDROM drive? I 
>couldn't find a command to do so, and the eject button on the drive panel 
>doesn't work, either. The eject button does work under OS/2 and DOS, so is
>there any problem with the setup.

I think the CDIOCEJECT ioctl command (found in <sys/cdio.h>) will
accomplish this.  I once had a small proggy around for this, but it
must have been affected by the `rm' virus some day...

Anyway, if your eject button doesn't work, this is for good reason:
you have the CD still mounted, and the operating system is unwilling
to let you take it out. :) Try ``umount /cdrom'' first...
-- 
cheers, J"org                      private:   joerg_wunsch@uriah.heep.sax.de
                                   http://www.sax.de/~joerg/

Never trust an operating system you don't have sources for. ;-)