SUMMARY: Listing open files in a filesystem without 'lsof'.

From: Burtenshaw, Craig <>
Date: Thu Nov 14 2002 - 17:27:13 EST

Thank you to everyone who responded to my problem and the winner is
Osama Ahmed, your solution worked.

He suggested using 'lockfs -h /mount-point', then 'umount /mount-point'.

Lockfs changes or reports on file system locks, the -h option puts a
hard-lock on the file system and would report
an error on every access and it cannot be unlocked, but can be umount'd.

I did find however that I needed to run 'fsck', over the disk as I
believe the above option was like a power cut to the disk.

Other suggestions throughout the course of this query were to use
'fuser', with the '-k, -c, and -u' options.
Also, using '/usr/proc/bin/pfiles <pid>', which is run on the /proc
directory and displays the files open to each process.

Thank you all again for your suggestions.


Craig Burtenshaw
Unix Systems/Oracle Database Administrator
Information Services

Australian Maritime Safety Authority
PO Box 2181
Canberra City ACT 2601

Lvl 2, 25 Constitution Ave
Canberra City ACT 2601

Ph: 61+ (0) 2 6279 5824
Fax: 61+ (0) 2 6279 5024
AMSA Web site:
Friends help you move. Real friends help you move bodies.
that any use or dissemination of this communication is prohibited.
If you receive this transmission in error, please notify us immediately
by telephone on 02-62795000 and delete all copies of this transmission
together with any attachments.
sunmanagers mailing list
Received on Thu Nov 14 17:30:18 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:58 EST