Re: filesystem full showing -29G

From: Greg 'groggy' Lehey <grog_at_freebsd.org>
Date: Sat, 26 Oct 2024 06:52:13 UTC
On Saturday, 26 October 2024 at  8:12:46 +0200, Matthias Apitz wrote:
> Hello,
>
> I've a bunch of external USB disks to where I copy every month the
> following three files, last on September 20:
>
> ...
>
> The yesterday's copy ended up with no space left on device. The curious
> thing is that it shows -29G:
>
> # df -kh /mnt/backups/
> Filesystem    Size    Used   Avail Capacity  Mounted on
> /dev/da0p4    652G    629G    -29G   105%    /mnt
>
> How is this possible?

This is a feature, not a bug.  By default, UFS only uses 90% odd of
available disk space.  The remainder is available only to root.  You
can change this value by using the tunefs -m, which specifies how much
to leave free.  See the man page for mroe detail.

Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply or reply to the original recipients.
For more information, see http://www.lemis.com/questions.html
Sent from my desktop computer.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA.php