How can I programatically eject a live cd?

Fabian Keil freebsd-listen at
Sat Nov 12 10:22:19 GMT 2005

Sean Bruno <sean.bruno at> wrote:

> I was looking for an answer to this question.  Since my CD is actually
> the running file system(is mounted), I cannnot eject it while the
> system is running.
> So is there a way to do this that y'all have found, or do I have to
> change my CD to run from memory(RAMDISK) instead of running from the
> CD.

If you know what you're doing:
cdcontrol -f /dev/cdX eject

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list