Operating System - HP-UX
1832644 Members
3031 Online
110043 Solutions
New Discussion

Not able to unmount cdrom

 
Ramakrishnan Kellio
New Member

Not able to unmount cdrom

Hi,

I mounted cdrom under /cdrom director (in HP-UX 11, N class server). When i tried to unmount the cdrom, it shows the device as busy. I tried to kill the process by using fuser -ku /cdrom. But no luck. How to resolve this problem? Would like to know availability of patch to resolve the problem.

Regards
Ramki
Problem is easy to solve if you look at from all perspective
14 REPLIES 14
Clemens van Everdingen
Honored Contributor

Re: Not able to unmount cdrom

Hi,

Did you change dir (cd /cdrom)
Then you should try to do cd / and then unmount !

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Khalid A. Al-Tayaran
Valued Contributor

Re: Not able to unmount cdrom

Hi,

make sure you're not in the cdrom directory.

Use pwd. then umount /cdrom.

Also make sure nobody else is accessing the cdrom.


Armin Feller
Honored Contributor

Re: Not able to unmount cdrom

Please have a look with 'lsof' (http://www.dartmouth.edu/~rc/FOM1/cache/136.html) to find which processes keeps the CD_ROM busy.

Please try also to umount the device:

# cd /
# umount /dev/(r)dsk/c...

Regards ...
Armin
Ravi_8
Honored Contributor

Re: Not able to unmount cdrom

Hi Ramki

Nobody should be accessing the /cdrom directory
# cd /
#umount /cdrom

if this couldn't get
#ps -aef|grep pfs
If any any pfs processes are running
#pfs_umount /cdrom

if the CD didn't come out then kill all the pfs processes
never give up
Rajeev  Shukla
Honored Contributor

Re: Not able to unmount cdrom

Hi did you cross check after fuser -ku that there is really no process accessing this device.
Do fuser -cu /cdrom or fuser -fu /cdrom
to check there is no process attached if so and is not required kill with -9 option.
Also make sure you are not in /cdrom directory or u'll be killed too.

Ramakrishnan Kellio
New Member

Re: Not able to unmount cdrom

Hi,

I am still see the processes after executing fuser (-ku /cdrom) command. Also, ps -ef | grep pfs gives no output.

Regards
Ramki
Problem is easy to solve if you look at from all perspective
Robert-Jan Goossens
Honored Contributor

Re: Not able to unmount cdrom

Ramki,

Well kill the processes you are seeing with fuser.

Robert-Jan.
RAJESH GANGADHARAN
Regular Advisor

Re: Not able to unmount cdrom

Hi Ram,
You Please checkup whether CD ROM drive is online by
#ioscan -fnC disk

check whether it is showing any CD/DVD ROM drives, if not check the drive status.
if it is not online, power on the drive and do an fuser -ck /cdrom,

I had faced similer problem, that time the CD drive was powered off.

-Rajesh
Let the choices you make today be the choices you can live with tomorrow.
monasingh_1
Trusted Contributor

Re: Not able to unmount cdrom

okau, run:
# fuser -cu /cdrom and fuser -ku /cdrom

then kill all the processes you see in the output using kill -9

The processes will have a c at the end lke 1234c 4509c and so on , kill -9 1234 4509

Then umount /cdrom...

it should work...

Re: Not able to unmount cdrom

hi

try umount -ck /cdrom


regards
Chandra Sekhar
Yogeeraj_1
Honored Contributor

Re: Not able to unmount cdrom

hi,

instead of using /cdrom, please try the device file.

e.g.

fuser /dev/dsk/c3t2d0


the following link might also help:
http://www.cmve.net/~merijn/

hope this helps!

Best Regards
Yogeeraj
No person was ever honoured for what he received. Honour has been the reward for what he gave (clavin coolidge)
Steven E. Protter
Exalted Contributor

Re: Not able to unmount cdrom

Full procedure

fuser -cu /cdrom (or whatever you named the folder when you mounted it)

If there are no processes on it, there is no need for the next step.

It is possible to get a zombie or process 1 on the cdrom in which case your only good option is to boot.

fuser -cuk /cdrom

kills everything, lists it as it kills it.

Don't be surprised if you lose your session, because its almost always sysadmin that causes this problem.

There should be no need for pfs_umount, but you can try it if you want.

This is not a patching issue, its a sysadmin keeping track of what he or she is doing issue.

If your problem is with pfs_mount, you may start getting NFS errors on the console. They can be safely ignored until you can find a safe window to reboot the machine.

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
John Bolene
Honored Contributor

Re: Not able to unmount cdrom

This normally happens when a user is in the cdrom directory or you have NFS mounted the CD and others are using it.

do a CD to get back to your home directory, check out if the drive is in use by NFS

Normally this is a problem that I have created for myself.
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
pap
Respected Contributor

Re: Not able to unmount cdrom

Hopw this will solve your problem.

1. cd /
2. fuser -ck /cdrom ( where cdrom is a directory , you mounted cdrom )
3. umount /cdrom

-pap
"Winners don't do different things , they do things differently"