Kenneth Scharf wrote:
> 
> >From time to time I have tried to unmount a disk (removable disk such as
> a CD or Floppy, or Bernoulii) and gotten the message "device is busy".
> This can happen if I am currently logged into a directory on that
> device, or if a process is using the device.  

I just had this problem myself.  What I have found is you can't umount a
directory you are accessing on the disk.  You must first cd to the
directory you originally mounted from to umount.  

>However sometimes It
> appears that the device should not be in use, yet I still get this
> message.  ps -a does not give any clue (shows no process running that
> should   be using the device).  Is there a command to show why a mounted
> device might be busy (ie: who the hell is using it?).

I've used fuser in this manner,

fuser -m /dev/fd0

when my floppy drive was busy, which gave me a readout,

254c  268c

I ran 
ps aux 
and found two processes corresponding to 254 and 268

I killed both these processes and successfully umounted the floppy.
hth,
Kent

Reply via email to