NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Free space inconsistency with df / du



In article <Pine.NEB.4.64.0803271157560.420%tx.reedmedia.net@localhost>,
Jeremy C. Reed <reed%reedmedia.net@localhost> wrote:
>> df -h shows me that I have 3 GB used, while du -sh / shows me it's 2
>> GB:
>
>fstat shows open files.
>
>Try something like:
>
>fstat | grep ' -[-rwx]' | sort -nr -k 8 | head
>
>On my system it shows the largest files (inode numbers) currently open.
>
>No mapping to filenames. But "find / -inum NUMBER" can help find it is 
>in directory still.

Or you can undelete it by finding it in /proc/<pid>/fd/<n> and linking
it back to the original filesystem :-)

christos



Home | Main Index | Thread Index | Old Index