[linux-help] Re: floppy problem
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
> 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
|
|