Operating System - HP-UX
1829378 Members
5235 Online
109991 Solutions
New Discussion

Command for eject cd from cdrom

 
Patricia_2
Occasional Advisor

Command for eject cd from cdrom

Hi,

What is the command for eject a cd from cdrom?

Thanks in Advance.

Regards,
Pat
5 REPLIES 5
Stefan Farrelly
Honored Contributor

Re: Command for eject cd from cdrom


There isnt one on HP-UX. umount the CD from HP-UX and then you have to manually press the eject/unload button on the actual CD drive.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Rick Garland
Honored Contributor

Re: Command for eject cd from cdrom

For HP-UX, umount the CD and then press the button.
Andreas Voss
Honored Contributor

Re: Command for eject cd from cdrom

Hi,

i put you a C source at attachment which i have extracted and modified from xmcd (CD player).
It umounts and sends a scsi command to cdrom for eject. May not work with all drivers.
I've tested it on K220 with character driver major 188 (/dev/rdsk/c?t?d0) and it worked.
You can obtain your device file from ioscan -fnC disk.

Regards

Andrew
Cheryl Griffin
Honored Contributor

Re: Command for eject cd from cdrom

There is an open enhancment request for this in the enhancement/problem report database.
"Downtime is a Crime."
P V Patel
Advisor

Re: Command for eject cd from cdrom

Hi,
First unmount the cdrom drive.(If you are not able to unmount cdrom drive, some user may be working in corresponding /cdrom directory/subdirectory. Ask them to come out of that directory and then unmount cdrom drive).
After that physicall press eject button on cdrom drive.
P V Patel
Punjabhai