Small drives are shown in red even when there is plenty of space
Author: metovCreated Sep 10, 2021Updated Oct 1, 2025
When I create a 1 GB partition on my drive, and write 100 MB of data to it, duf highlights it in red. I assume this means low space and indicates that "only" 900 MB free space is left. However, a partition being 10% full hardly seems like something to be alarmed over.
I suppose it is ultimately subjective whether people would care more about absolute or relative free space. Sounds like duf is going with the latter. Is there any possibility of focusing on relative space instead?
- In my use case, the partition in question is
/bootand hence the 900 MB of free space is actually plenty. - Using relative thresholds is self-updating, and obviates the need to perpetually increase the threshold of what counts as "low" as hard drives get bigger and user expectations change.
If it is desirable to keep the current behavior of going by absolute sizes, maybe we could have an option --highlighting {relative|absolute}?
Source: muesli/duf