Re: floppy problem
"gLaNDix (Jesse Kaufman)" <glandix-5N9U/[email protected]> Mon, 2 Jun 2003 03:01:16 -0500
| Newsgroups | gmane.org.user-groups.aclug.linux-help |
|---|---|
| Message-ID | <005001c328dd$285d6a40$0301a8c0@kryten> |
> 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 [email protected] list. To unsubscribe, visit http://www.complete.org/cgi-bin/listargate-aclug.cgi