LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   bash command for cdrom eject? (https://www.linuxquestions.org/questions/linux-newbie-8/bash-command-for-cdrom-eject-188879/)

hexadevil 06-02-2004 11:56 AM

bash command for cdrom eject?
 
i know there is usually a bash command to do this
im in gentoo 2004.1
i was just wondering if theres a command for this because im trying to write a script.

blueCow 06-02-2004 12:01 PM

believe it or not its eject.

hexadevil 06-02-2004 02:29 PM

yea i tried that. for some reason it doesnt seem to be working.

go figure...

Dark_Helmet 06-02-2004 03:05 PM

Make sure the CD is not mounted. If it is, then neither the eject command or the eject button will work until you unmount the CD.

david_ross 06-02-2004 03:09 PM

By default it will try to eject the symlink:
/dev/cdrom

If you need to eject another drive use, for example:
eject /dev/hdd

acerny 06-02-2004 04:00 PM

'eject /dev/cdrom' should eject your cdrom. when mounted, it will try to umount first. for rejecting back, use '-t', i.e. 'eject -t /dev/cdrom'


All times are GMT -5. The time now is 05:23 AM.