Operating System - HP-UX
1833664 Members
3738 Online
110062 Solutions
New Discussion

What process is keeping my CD busy?

 
Terrence Johnson
Occasional Contributor

What process is keeping my CD busy?

This should be simple enough. I have a CD in the drive and it's mounted to /cdrom. I want to umount it but I get the message: "cannot umount /cdrom : Device busy".
Usually that means that I'm still in the /cdrom directory and all I have to do is cd / to release it. This time though, it's not me and I can't see a single other user who would even know the CD is on the system. Short of rebooting the server, how can I kill the process that's blocking me from umount(ing) the CD?
...just round up the usual suspects
8 REPLIES 8
Steve Labar
Valued Contributor

Re: What process is keeping my CD busy?

You can try doing an fuser -u /cdrom to see what/who is using it. Or you could do an fuser -ku /cdrom which will kill any process that is using it.

Good Luck.

Steve
Ken Hubnik_2
Honored Contributor

Re: What process is keeping my CD busy?

fuser -c /cdrom

will show the processes that are accessing that mount point.
Terrence Johnson
Occasional Contributor

Re: What process is keeping my CD busy?

Nope. The fuser -u comes back blank, as does the fuser -ku and the problem remains. I wonder if I have a zombie?
...just round up the usual suspects
Pete Randall
Outstanding Contributor

Re: What process is keeping my CD busy?

Terrence,

You should check into lsof - a very handy utility. You can find a couple of sources for it in this thread:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xf58885079106d71190050090279cd0f9,00.html


Pete

Pete
Paul Sperry
Honored Contributor

Re: What process is keeping my CD busy?

Steven E. Protter
Exalted Contributor

Re: What process is keeping my CD busy?

I you just want to umount


fuser -cuk /cdrom

or whatever you call the cd.

As sysadmin, don't be surprised if this command kills your telnet session.

About half the time I get the error message, I've got a session on the cdrom.

P
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
pap
Respected Contributor

Re: What process is keeping my CD busy?

Hi,
Just do fuser -c /cdrom

You will see the processes using cdrom drive. Otherwise just do following and you will be able to unmount the cd drive.

# fuser -ck /cdrom
#umount /cdrom

Hope this will help.

-pap

"Winners don't do different things , they do things differently"
Bill Hassell
Honored Contributor

Re: What process is keeping my CD busy?

fuser often fails because it looks for open files relative to the /cdrom path. Always run fuser against the device file as in:

fuser /dev/dsk/c0t2d0

(or whatever your CDROM device file might be) The problem is usually caused by user cd'ing into the CDROM. They haven't opened a file like you would running vi or cat but nevertheless, the directory /cdrom (and perhaps subdirectories underneath) are indeed open, but in a different way.

fuser is only about 75% effective in finding the reason for umount failures. Get a copy of lsof from http://hpux.connect.org.uk/


Bill Hassell, sysadmin