Operating System - HP-UX
1832276 Members
2345 Online
110041 Solutions
New Discussion

Re: device file for CDROM busy

 
Joe Robinson_2
Super Advisor

device file for CDROM busy

I'm having a heck of a time trying to mount a CD; fuser -cu and -ku /cdrom don't show anything mounted. When I try mounting a CD, I see the following error:

/dev/dsk/c3t2d0 on SD_CDROM: open failed: device busy

What is the correct way to determine how to identify this process so I can kill it and mount my CD?
7 REPLIES 7
Sundar_7
Honored Contributor

Re: device file for CDROM busy

Joe,

fuser -cu should do it. But "open failed: device busy" may actually mean drive/media failure.

Do a ioscan -fnC disk, find out the CD rom device file.

Insert the media and try a diskinfo first. See if that works.

Sundar.
Learn What to do ,How to do and more importantly When to do ?
A. Clay Stephenson
Acclaimed Contributor

Re: device file for CDROM busy

If you have lsof installed, you will find that it is much better at finding your processes than is fuser.

http://hpux.its.tudelft.nl/hppd/hpux/Sysadmin/lsof-4.77/

However, my psychic, Miss Cleo, tells me that you may have used pfs_mount in the past and if that is the case you might as well bite the bullet and reboot. See if you have any pfs processes running and if so, try a pfs_umount and then kill all the pfs* processes and then you may be abount to unmount the cdrom.
If it ain't broke, I can fix that.
Joe Robinson_2
Super Advisor

Re: device file for CDROM busy

Miss Cleo was PARTIALLY right; I tried using psf this AM as my typical command for mounting the CD was having the same issue (device file busy).

A. Clay Stephenson
Acclaimed Contributor

Re: device file for CDROM busy

In general, when pfs has been used the only fix is a reboot. Do yourself a favor and install the Rock Ridge cdfs patches and then we don't need no stinkin' pfs_mount.
If it ain't broke, I can fix that.
Bill Hassell
Honored Contributor

Re: device file for CDROM busy

fuser is called the 50% command because it only works about 50% of the time. The correct command to use is lsof which you must download. Otherwise, someone probably cd'd into the CDROM and you'll need to check who may have done this. fuser misses a lot of this. It's best never to cd into a removable filesystem.


Bill Hassell, sysadmin
Sp4admin
Trusted Contributor

Re: device file for CDROM busy

Hi Joe,

I would chedk to see what is busy in that directory using the fuser -cu command. or use lsof if it's installed if not you can download it. make sure someone isn't cd into the /cdrom directory.

sp,
David Bellamy
Respected Contributor

Re: device file for CDROM busy

Hello Joe:
make sure that you are not in the cd directory and then use fuser -cku /cdrom to kill any processes using the filesystem.