Complete.Org: Mailing Lists: Archives: linux-help: June 2003:
[linux-help] Re: floppy problem
Home

[linux-help] Re: floppy problem

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: <linux-help@xxxxxxxxx>
Subject: [linux-help] Re: floppy problem
From: "gLaNDix (Jesse Kaufman)" <glandix@xxxxxxxxxxxx>
Date: Mon, 2 Jun 2003 03:01:16 -0500
Reply-to: linux-help@xxxxxxxxx

> 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.

'lsof' works great when trying to figure out what processes are using a
file/dir/dev....  not all distros come with it by default, but it's an
incredibly useful tool...

gLaNDix

-- This is the linux-help@xxxxxxxxx list.  To unsubscribe,
visit http://www.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]