SUMMARY: eject cdrom -- device busy

From: Oscar Goldes (
Date: Sat Apr 12 1997 - 11:43:27 CDT

Original question:
It happens frequently that after somebody has used the cdrom drive
in a Ultra/Solaris 2.5, trying ti eject the cd gets the message
/cdrom: device busy
It is not a matter of a user logged in /cdrom; some process is using it. The
question is:

Is there a command that will tell which process is using /cdrom?

I tried "fuser /cdrom" but it does not tell anything useful.
After killing the most suspect process, the problem gets solved, but I am
looking for a more systematic approach.

Thanks to
Sean Ward
Daniel Baker
Mathew Stier
Jim Harmon
David Robson
and others
Solutions proposed to find who is using the cdrom:
1. get lsof (list open files) and run it
2. run fuser -c /cdrom or fuser -c /cdrom/cdrom0 (whichever appropiate to
the mount opint) (my apologies for not reading thoroughly the man page
before posting!)

Solutions to release the cdrom
1. run fuser -ck /cdrom or fuser -ck /cdrom/cdrom0 as root
2. kill vold and restart it

Regards and thanks again
-- Oscar Goldes
-- Orden Argentina SA

This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:50 CDT