Operating System - HP-UX
1826496 Members
2902 Online
109692 Solutions
New Discussion

Re: Problem to umount cd-rom

 
SOLVED
Go to solution
Remko Oosenbrug
Contributor

Problem to umount cd-rom

When I try to umount my cd-rom the systems says:

umount: cannot unmount /wocas_cd : Device busy

How can I see what keeps th cd-rom busy?
OH No. It's happening again
6 REPLIES 6
Victor BERRIDGE
Honored Contributor

Re: Problem to umount cd-rom

use the cmd fuser
John Palmer
Honored Contributor

Re: Problem to umount cd-rom

Try 'fuser -c /wocas_cd'

This will give a list of processes that are using the mountpoint. See man fuser.
CHRIS_ANORUO
Honored Contributor

Re: Problem to umount cd-rom

If you are in the /cdrom directory, it will give you the same error. Do cd and enter to take you to $HOME.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Bill Hassell
Honored Contributor
Solution

Re: Problem to umount cd-rom

There are dozens of ways to keep a CDROMmountpoint open:

- cd to the mountpoint (anyone on the system)
- export the filesystem through NFS
- copying a file
- application has a file open

Of these, only the last two will be accurately reported by fuser. Try fuser pointing to the mountpoint, and then also to the device files. If that still does not show who has the CDROM open, get a copy of lsof (List Open Files) from the Liverpool archives:

http://hpux.connect.org.uk/

At the bottom of that page are links to mirror sites around the world.


Bill Hassell, sysadmin
Antoanetta Naghiu
Esteemed Contributor

Re: Problem to umount cd-rom

As it was already said, fuser will help you to see the processes. Check if yourself or someone else is sitting inthat directory.
You have to be root to umount it.

If the cdrom has been mounted using pfs_mount, you have to
#/usr/sbin/pfs_umount /cdrom (or whatever is the cdrom mount point)
If necessary, stop the pfsd and pfs_mountd processes.
Anthony Goonetilleke
Esteemed Contributor

Re: Problem to umount cd-rom

The easiest thing to do is
#fuser -cuk /cdrom

This should kill all proc's associated with that mount point
Minimum effort maximum output!