Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!samsung!usc!apple!zorba!dtynan From: C.J.Parkin-Lilley@fulcrum.bt.co.uk (Chris Parkin Lilley [cs12]) Newsgroups: comp.unix Subject: Re: how to see which files are open? Summary: Try fuser Keywords: fuser Message-ID: <3550@zorba.Tynan.COM> Date: 23 Feb 90 03:33:29 GMT References: <3537@zorba.Tynan.COM> Sender: dtynan@zorba.Tynan.COM Followup-To: comp.unix Organization: BT Fulcrum, Birmingham, England Lines: 28 Approved: dtynan@zorba.Tynan.COM Original-Sender: Root on Masalla In article <3537@zorba.Tynan.COM> uunet!unix.sri.com!cole (Susan Cole) writes: >I found myself wanting to umount a filesystem which as far as I could >see no one was in (nor in another directory under it) but nevertheless, >every time I tried to umount it I got "Device busy". This was >frustrating. There must be a way to see what processes have which >files open but nothing sprang to my eye when I did a 'man -k' of "files", >"open", and "table". Will someone please tell me what it is? Please post >(this is said in hopes of keeping the responses in the hundreds instead >of the thousands). Thanks! > Does your system have 'fuser'. If so, you should be able to do something like fuser -u /dev/dsk/whatever (a block special file) This should give you the pids of the processes which have a partition open, and fuser -k /dev/dsk/whatever should try and kill them off. Hope this is OK. Of course, if you don't have fuser, then it won't be any help. Good luck. -Chrisl. -- -------------------------------------------------------------------------------- Chris Parkin Lilley, CS1.2, BT Fulcrum, UK chrisl@uk.co.bt.fulcrum