Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!mips!zorba!dtynan From: fk@kos.rci.dk (Fleming Kraglund) Newsgroups: comp.unix Subject: Re: how to see which files are open? Summary: process accounting has open file Keywords: fuser, umount, process accounting Message-ID: <3568@zorba.Tynan.COM> Date: 7 Mar 90 23:45:37 GMT References: <3537@zorba.Tynan.COM> <3550@zorba.Tynan.COM> Sender: dtynan@zorba.Tynan.COM Organization: RC International, Copenhagen, Denmark Lines: 23 Approved: dtynan@zorba.Tynan.COM C.J.Parkin-Lilley@fulcrum.bt.co.uk (Chris Parkin Lilley [cs12]) writes: >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 >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. Please note that if you are using process accounting (assuming sysV 3.x) then the kernel has an open file on /usr, (yes the kernel, it's the inode on which to write the account records) and you must do a /usr/lib/acct/shutacct. Hope this helps too. -- fk@rci.dk (I hate .sig files)