eject a cdrom in freebsd

Contributor Icon Contributed by Michilimackinac Date Icon January 19, 2004  
Tag Icon Tagged: 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.

Previous recipe | Next recipe |
 
blog comments powered by Disqus