eject a cdrom in freebsd
This is the way via software to eject a cdrom under freebsd
For ATA (IDE/EIDE) cdroms the device is /dev/acd0c and the command looks like this:
cdcontrol -f /dev/acd0c eject
For SCSI cdroms the device is /dev/cd0c and the command would be:
cdcontrol -f /dev/cd0c eject
I do not have a usb cdrom so I am not sure what that one would look like. Please post a comment if you have seen that one.











Anonymous said on April 20, 2010
usefull
rod said on April 21, 2010
Hey mate!
I knew about ‘eject’ program under Linux.
There was this flag ‘-t’ that could be used to close the cdrom device.
I had no idea about doing the same thing under freebsd.
Then you came up with this cool tip. eheh
Helped me to have a lot of fun. lol
Cheers!
Ivan Dimitrov said on September 21, 2011
@rod
cdcontrol -f /dev/acd0 close