I have a 1TB USB drive mounted with SambaNAS to be used as data storage for Frigate.
The drive is formatted to EXT4 and empty.
But Frigate reports 46GB already in use.
You most probably know that you can remove a file that still in use by some application and for this application it remains available. It because file descriptor in /proc/ filesystem is held open.
So if there are such open descriptors to files already removed, space occupied by them considered as used by df (and df is right), but they can not be taken into account by du due to there are no longer filenames associated with them.
You can find all unlinked but held open files with: