cancel
Showing results for 
Search instead for 
Did you mean: 

umount cdrom

SOLVED
Go to solution

umount cdrom

Hi all.

I want to umount /cdrom, but it?s busy.

Now I want to kill the processes who keep the cdrom busy, (kill -9) but these processes don?t want to die, probably they are waiting for I/O.

How can I do these processes to free the device, to umount cdrom?

Thanks all.
Rafa
5 REPLIES
Alexander M. Ermes
Honored Contributor

Re: umount cdrom

Hi there.
Someone is still working in that subdirectory.
Get the lsof tool, check it and tell the user to get out.
Rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Ralph Grothe
Honored Contributor

Re: umount cdrom

Hi Rafael,

even without having lsof installed you can see which processes are busy on /cdrom.
Just issue

# ps -fp "$(fuser -cu /cdrom 2>/dev/null)"

If it's safe to kill those in one go, just try

fuser -ck /cdrom && umount /cdrom
Madness, thy name is system administration
Stefan Farrelly
Honored Contributor
Solution

Re: umount cdrom


If fuser -k doesnt kill the processes preventing the cd from being unmounted then your dead. You must reboot your server. If some processes wont die try killing their parent process also (unless the parents pid=1). Are you using pfs_mount ? if so you should kill the pfs processes also.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Victor_5
Trusted Contributor

Re: umount cdrom

first
fuser -cu /mount_point
then
fuser -ku /mount_point

This command can work in most of similar NFS issues.


Magdi KAMAL
Respected Contributor

Re: umount cdrom

Hi Rafael,

If you are using pfs_mount to install oracle, the only way to get the cdrom out is the pfs_umount.


Magdi