eject a cdrom in freebsd

Contributor Icon Contributed by Michilimackinac  
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.

 

3 Comments -


  1. Anonymous said on April 20, 2010

    usefull

  2. 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!

  3. Ivan Dimitrov said on September 21, 2011

    @rod

    cdcontrol -f /dev/acd0 close

 

RSS feed for comments on this post. TrackBack URL

Leave a comment -