1834732 Members
2621 Online
110070 Solutions
New Discussion

Unable to eject CDROM

 
Chakravarthi
Trusted Contributor

Unable to eject CDROM

Unable to eject CDROM from a HP-UX server, so what needs to be checked,

Not mounted
9 REPLIES 9
Pete Randall
Outstanding Contributor

Re: Unable to eject CDROM

Mount it.

Unmount it.

Eject it.



HTH,
Pete

Pete
harry d brown jr
Honored Contributor

Re: Unable to eject CDROM

If you are still having problems after following Pete's suggestion, then get "lsof" to determine what if anything has it in use:

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/lsof-4.64/

live free or die
harry
Live Free or Die
Ravi_8
Honored Contributor

Re: Unable to eject CDROM

Hi,

you don't have eject command (like in solaris) in hp-ux to eject a cdrom.
#bdf
if you could see /cdrom
#umount /cdrom
press the button, CD comes out. if not
#fuser -k /cdrom
#umount /cdrom

never give up
Stefan Farrelly
Honored Contributor

Re: Unable to eject CDROM

If its not mounted then only 2 things to do;

1. power cycle the CD unit. You should be able to do this without rebooting the server, or else reboot the server.
2. if it still wont eject use a paperclip and insert into the manual eject hole on the front and press hard to force an eject.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Ken Hubnik_2
Honored Contributor

Re: Unable to eject CDROM

Make sure no one is in /cdrom.
fuser -c /cdrom.
Armin Feller
Honored Contributor

Re: Unable to eject CDROM

Hi,

if the umounting doesn't work you can do following:

?? reboot with holding down the CDROm eject button, then the CDROM will successfully.

You should check if the current SCSI, DIAGNOSTICS, FILESYSTEM patches are installed.

Best regards,
Armin
John Poff
Honored Contributor

Re: Unable to eject CDROM

Hi,

I have seen this before when a CD-ROM is mounted using pfs_mount and hasn't been unmounted. Try doing an 'fuser' command on your CD-ROM disk device to see if any process is holding it open.

JP
Ravi_8
Honored Contributor

Re: Unable to eject CDROM

Hi,

what the John poff is also right, check for any pfs process, if nobody using cdrom
#pfs_umount /cdrom
if still the CD is not coming out kill all pfs process

never give up
Steven E. Protter
Exalted Contributor

Re: Unable to eject CDROM

fuser -cuk /cdrom

assuming cdrom is the directory you mounted the filesystem on.

This will kill any processes on it, including telnet or X-Windows sessions, then you can unmout it and reject it.

This pretty much has to work, though it might hose your pfs_mount processes and start generating console messages about NFS issues.

Best practice is to follow the advice above and stop those nasty pfs proceses. I have scripts for that purpose, let me know if you want them.

Of course my sledgehammer approach will most certainly get the cd out of the drive for you.

:-)

Steve
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com