I recently ran out of disk space on a drive on a FreeBSD server. I truncated the file that was causing problems but I’m not seeing the change reflected when running df. When I run du -d0 on the partition it shows the correct value. Is there any way to force this information to be updated? What is causing the output here to be different?
I recently ran out of disk space on a drive on a FreeBSD server.
Share
This probably centres on how you truncated the file. du and df report different things as this post on unix.com explains. Just because space is not used does not necessarily mean that it’s free…