Eject a CD-ROM in FreeBSD

Posted January 19, 2004 by Michilimackinac in FreeBSD

The following describes how to eject a CD-ROM under freeBSD via software.


For ATA (IDE/EIDE) CD-ROMs, the device is /dev/acd0c, and the command looks like this:


cdcontrol -f /dev/acd0c eject

For SCSI CD-ROMs, the device is /dev/cd0c, and the command would be as follows:


cdcontrol -f /dev/cd0c eject

I do not have a USB CD-ROM, so I am not sure what that one would look like. Please post a comment if you have seen one.

The Conversation

Follow the reactions below and share your own thoughts.