[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: My CDROM is mounted by ?



On Mon, May 26, 2003 at 11:16:51PM +0100, David selby wrote:
> I have been mounting my DVD, /mount /CDROM/ reading DVDs.
> I tried to /umount /cdrom, "device busy"/ I shut down all my programs, 
> just KDE running, /"device busy".
> /Had to resort to drastic action, re-booted system
> 
> Im sure there is a better way ?
one thing that has caught me out is that if you spawn a shell from that
file stystem it will be busy eg:

cd /cdrom/foo
su
cd /

you look through all your terminals and none are in /cdrom/* but the su
session was started from there so must be nohuped or closed [not sure if 
nohup would work -close definately does] before the /cdrom is unmounted. 

as others have said, lsof is good but you'll need to do something with the
output.
 
-- 
hugh



Reply to: