Skip to content

Discrepancy between used/total disk usage from the storage module and df -h #750

@onefish2

Description

@onefish2

Describe the bug
On my system., the storage module reports 105GiB used out of a total size of 233 GiB (105/233 GiB). df -h shows 94G on / and 355M used on /boot. So I am trying to understand what the value of 105Gib is showing. There seems to be a discrepancy. Fastfetch shows 93.16GB / 232.71 GB so the 232.71 rounded up is 233. That makes sense but not the first value for used.

To Reproduce
See what values are Disk module shows and check with df -h or another tool

Expected behavior
I would expect the numbers to be close.

Desktop (please complete the following information):

  • Distribution: Arch
  • Window Manager/Desktop Environment: Hyprland

Where are you getting the disk used number from?

Activity

Jas-SinghFSU

Jas-SinghFSU commented on May 26, 2025

@Jas-SinghFSU
Owner

Using GLibtop for this information: GTop.glibtop_get_fsusage(fsUsage, path);. Hyprpanel uses available block size while df shows free block size including reserved blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Discrepancy between used/total disk usage from the storage module and df -h · Issue #750 · Jas-SinghFSU/HyprPanel