1834195 Members
2450 Online
110064 Solutions
New Discussion

CanB4t eject CDROM

 
SOLVED
Go to solution
castro_2
Regular Advisor

CanB4t eject CDROM

I trie to eject crdrom

# pfs_umount /cdrom

pfs_mount: giving up on /cdrom

To mount
# pfs_mount /cdrom

Thanks
10 REPLIES 10
James R. Ferguson
Acclaimed Contributor

Re: CanB4t eject CDROM

Hi:

Make sure that you are not cd'd into /cdrom.

You can do:

# fuser -cu /cdrom

...to look for processes.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: CanB4t eject CDROM

fuser -cuk /cdrom

Now you can eject it.

Don't be surprised if you kill a telnet session or something. Don't be surprised if you disconnect yoruself.

SEP
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
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: CanB4t eject CDROM

You are the lucky victim of a PFS hang and generally the only cure is a reboot. You might try killing pfsd and pfs_mountd but I doubt that is going to fix you.

Typically, I start pfsd and pfs_mountd and use pfs_mount only for the time required and then immediately pfs_umount and kill the pfs deamons -- this is not the most stable stuff to ever escape the HP Garage.
If it ain't broke, I can fix that.
Caesar_3
Esteemed Contributor

Re: CanB4t eject CDROM

Hello!

The psf it's buggy tool so if the kill of
all processes that use the mount point
would help you will need to make the reboot
to the machine.

Caesar
castro_2
Regular Advisor

Re: CanB4t eject CDROM

fuser -cu /cdrom
/cdrom:

No process.
Thanks
Uday_S_Ankolekar
Honored Contributor

Re: CanB4t eject CDROM

Unfortunetly reboot is the only option left for you now, but I would suggest install these pfs patches to avoid similar problem in future
PHKL_28060, PHCO_26449, This may have superseeded look for the recent from patch databse.

Goodluck,
-USA..
Good Luck..
James R. Ferguson
Acclaimed Contributor

Re: CanB4t eject CDROM

Hi (again):

As Clay has noted, if you are the victim of a hung 'pfs_mount' your only recourse is to reboot. Killing the 'pfs' daemons in other than the reverse order in which they were started leads to hung systems. Failure to use a 'pfs_umount' also results in hung systems. Your symptoms will resemble hung NFS mounts since 'pfs' leverages features of NFS.

If you do a 'bdf' and get no response and/or if your server's load averages are increasing (as seen via 'uptime'), quit now and reboot!

Having said that, in 11.x you can natively mount CDs and throw away forever the truly awful 'pfs_mount'.

For 11.11 download and install these patches from the ITRC:

PHCO_25841
PHKL_28025
PHKL_26269

This will allow you to natively mount CDs in RockRidge Format (like ORacle uses).

While this requires a reboot to install, it is far superior to the old 'pfs' mount methodology. To mount your CD/DVD, do:

# /usr/sbin/mount -F cdfs -e -o ro,rr device_file

Similar patches are available for 11.0.

Regards!

...JRF...
Chris Vail
Honored Contributor

Re: CanB4t eject CDROM

Remember that plastic key they give you in the plastic sack attached to the owners manual for your CDROM? Its time to dig it up! Thats the only way you'll get that CD out of there without rebooting your system. Find the little hole at the top of the CD face plate, and jam it in there. It'll take a few tries, but the CD will eventually come out where you can grab it. Then just figure on rebooting the system at some point in the near future. And of course, you won't be able to use the CD again until then.


Chris
Steven E. Protter
Exalted Contributor

Re: CanB4t eject CDROM

Don't user a paper clip with Chris' suggestion. After my experience(see HP-9000 forum) I wouldn't do it any other way than booting.

First:

ps -ef | grep pfs

kill the processes

kill -9

We want the process and its daddy.

Then try and eject.

SEP
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
Con O'Kelly
Honored Contributor

Re: CanB4t eject CDROM

Hi

I have had some luck in the past with using:
# pfs_umount -c

It doesn't always work but it has saved me a reboot before, especially when the CD has already been unmounted with a normal umount command and you can't eject it.

Cheers
Con