Re: floppy problem

Tom Hull <[email protected]> Mon, 02 Jun 2003 01:34:44 -0500
Newsgroups gmane.org.user-groups.aclug.linux-help
Message-ID <[email protected]>
bruce wrote:
> On Monday 02 June 2003 12:06 am, you wrote:
> 
> In my case with mcopy,  it was still stuck the next day, so a timeout 
> was not going to help.  I shut down everything but the terminal window 
> (in KDE) and it was still stuck.  After I shut down KDE and restarted 
> it I was able to use the floppy.  Not having to reboot helped me keep 
> my faith in the integrity of the linux kernel.

then there may be some interference between 2+ related processes that
are using the floppy. this command could probably be cleaned up a bit,
but to find out which processes are using the floppy you could do
something like:

   ls -l /proc/*/cwd /proc/*/fd/* | fgrep /mnt/floppy

it wouldn't be hard (and would be useful) to turn this into a program
that would just print out the process ids or invoke ps with them. this
sort of thing would also be useful for umount device busy failures.

> bruce

also, regarding the previous question on process relationships, there's
another command called pstree.

-- 
/*
  *  Tom Hull * thull2(cox.net) * http://www.tomhull.com/
  */

-- This is the [email protected] list.  To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi