1832106 Members
3067 Online
110038 Solutions
New Discussion

eject cdrom

 
SOLVED
Go to solution
Caesar_3
Esteemed Contributor

eject cdrom

Hello

I wonder how can control the ejection of cdrom
in hp workstation just like eject in linux and solaris.
I use HPUX 11.0 on B2000/B2600

Thk.
Caesar
8 REPLIES 8
Patrick Wallek
Honored Contributor

Re: eject cdrom

As far as I know there is no 'eject' command in HP-UX unless you want to learn SCSI drivers and write your own.
Tom Danzig
Honored Contributor

Re: eject cdrom

Do a search on the forums for "eject cdrom". Someone in the past posted a C program which will accomplish this. I at one time compiled and tested it and it worked well (if you need such a thing).
Jeff Schussele
Honored Contributor

Re: eject cdrom

Hi Caesar,

On up-to-date patched 11.0 & newer 11i systems try:

mt offl

This assumes, of course, that the tape device is /dev/rmt/0mn. If it's not then it would be:

mt -f /dev/rmt/Xmn offl

where X=tape instance. This is a relatively new command option. Up until then there was no way to eject.

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Alex Glennie
Honored Contributor
Solution

Re: eject cdrom

drop me an email ..... I have something which maybe of use. see my forum profile.
Ravi_8
Honored Contributor

Re: eject cdrom

Hi Caesar

there is no eject in HP like in solaris/linux,
you have to manually unmount the CD and take it out from the drive
never give up
Jeff Schussele
Honored Contributor

Re: eject cdrom

Hi Caesar,

Sorry - I must have been delirious when I posted that.
Don't know why, but I guess I read "tape" instead of CD-ROM.
Patrick is of course correct - there is NO eject function for a CD-ROM in HP-UX.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Caesar_3
Esteemed Contributor

Re: eject cdrom

Thanks for help!

Alex you helped me very much!

Caesar
Dave La Mar
Honored Contributor

Re: eject cdrom

Caesar -
As Tom mentioned, a search of the forums for eject cdrom did indeed turn up a response with an attached c program. I compiled this on HP-UX 11.0 and tested on an 11.0 system. It worked as advertised; umounting the /CDROM and ejecting the cd.
See attached. I think many in the forums would be interested in the other solution, if you would be so kind as to post it.

Best regards,

dl
"I'm not dumb. I just have a command of thoroughly useless information."