Timeline for df, du report incorrect disk usage
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 5, 2015 at 10:30 | comment | added | Steven Edwards | sudo truncate -s 0 /proc/[pid]/fd/[fd] worked. | |
| Feb 5, 2015 at 1:49 | comment | added | Steven Edwards | lsof +L1 shows that the .xsession-errors file descriptor is still open, held by gdm. Would it be a disaster if I truncate the file in /proc/pid/fd/? | |
| Feb 5, 2015 at 1:46 | comment | added | Steven Edwards | After deleting that file, du -sh / shows 20G now, but df shows 97% usage. | |
| Feb 5, 2015 at 1:42 | comment | added | Steven Edwards | .xsession-errors was 83GB, per du -h .xsession-errors. Oddly, that file was excluded from du -h ~/ | sort -h. | |
| Feb 5, 2015 at 1:27 | comment | added | Steven Edwards | Thanks for the block size tip. $HOME's block size is 4096 bytes. Including directories (find ~ | wc -l), $HOME has 81846 files--more than what du found. | |
| Feb 5, 2015 at 0:37 | history | answered | aecolley | CC BY-SA 3.0 |