Where has all my disk space gone?

Kartik Subbarao subbarao at phoenix.Princeton.EDU
Wed Apr 24 06:56:19 AEST 1991


In article <1991Apr23.194511.29646 at Think.COM> barmar at think.com (Barry Margolin) writes:
>In article <1991Apr23.174228.11278 at aucs.AcadiaU.ca> peter at aucs.acadiau.ca (Peter Steele) writes:
>>df reports the following:
>>
>>Filesystem                 Type  kbytes     use   avail %use  Mounted on
>>/dev/dsk/ipc1d2s3           ffs  945670  589136  356534  62%  /u2
>>
>>According to this, we have 589136 kbytes in use on this drive. However,
>>du does not seem to agree with df:
>>994268  /u2
>>
>>The total of 994268 blocks in use converts to 497134 kbytes, a difference
>>of 92002 kbytes--not a small amount.
>If a process opens a file and then deletes it, the file still exists on
>disk until all the processes that have it open either close it or die.
>This is probably the most common cause of missing disk space.  It can
>happen if someone deletes a log file, not realizing that there's still a
>process writing to it; the log will continue to grow, and there will be no
>way to stop it.

Yes, but also note that du reports in terms of Kbytes, not blocks, so there
is no 400 meg discrepancy. Note that directories take up space on the disk,
as does creating the file system itself.


		-Kartik


--
internet# rm `df | tail +2 | awk '{ printf "%s/quotas\n",$6}'`

subbarao at phoenix.Princeton.EDU -| Internet
kartik at silvertone.Princeton.EDU (NeXT mail)  
SUBBARAO at PUCC.BITNET			          - Bitnet



More information about the Comp.unix.questions mailing list