A handy method to check on whats got hold of a filesys is:- # fuser -uv /cdrom This should show all procs with an interest in the filesys/dev/file etc. Rgds Dave
-----Original Message----- From: FX Fraipont [SMTP:fxf@skynet.be] Sent: 15 February 2003 08:59 To: suse Subject: Re: [SLE] CDRom stuck inside: solved
Marc Christensen wrote:
This is caused by a processess still running in a directory on the moutned CDROM or files on the CDROM open by some program(s).
You need to kill/exit thoes programs before you can unmount.
You can use the 'lsof' command to list which files are currently open.
$ lsof | grep cdrom
Will list all processes which have files open on the CDrom device.
That was quick and efficient, and did the trick perfectly. Thanks a lot to all that replied.
I had been watching a Divx with mplayer; after closing mplayer, I wanted to eject the CD. I thought of checking the processes, but it's not obvious that a kdeinit is the cause of the problem. And then why doesn't the process die when mplayer is closed?
This is a problem that has been bugging me since I installed 8.1, I never had anything like it with 7.3, with exactly the same hardware.
This often happens with cdrecord / k3b, and with kscd. Surely it is not normal to have to look for errant processes and kill them after you have exited the application just to be able to open the drive?
FX
-- ______________________ Courtesy of SuSE Linux nibz.org
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
**********************************************************************
The information contained in this e-mail is confidential and intended only for the use of the addressee. If the reader of this message is not the addressee, you are hereby notified that you have received this e-mail in error and you must not copy, disseminate, distribute, use or take any action as a result of the information contained in it.
If you have received this e-mail in error, please notify postmaster@npower.com (UK 01384 275454) and delete it immediately from your system.
**********************************************************************
********************************************************************** The information contained in this e-mail is confidential and intended only for the use of the addressee. If the reader of this message is not the addressee, you are hereby notified that you have received this e-mail in error and you must not copy, disseminate, distribute, use or take any action as a result of the information contained in it. If you have received this e-mail in error, please notify postmaster@npower.com (UK 01384 275454) and delete it immediately from your system. Neither Npower nor any of the other companies in the Innogy group from whom this e-mail originates accept any responsibility for losses or damage as a result of any viruses and it is your responsibility to check attachments (if any) for viruses. Npower Limited Registered office: Windmill Hill Business Park, Whitehill Way, Swindon SN5 6PB. Registered in England and Wales: number 3653277. This e-mail may be sent on behalf of a member of the Innogy group of companies. **********************************************************************