System Information: Local disk space wrong values

Go to [System Information] section and look for "Local disk space" in [Sytem Information] tab. In my case it reports 12.50 GB used, 94.40 GB total. See the image in attachment.

When I check the disk usage in Terminal I get other values. The difference is notable: Size 95G, Used 7.8G. See the other image in attachment. There are 4.7 GB which Webmin shows as being used. This value is wrong and it could be a bug.

I did a refresh but nothing changes.

Comments

The discrepency is due to disk space that is reserved for the root user only. This can be adjusted with the tunefs command.

tune2fs -l /dev/vda1 is providing this information:

root@server:~# tune2fs -l /dev/vda1
tune2fs 1.42.5 (29-Jul-2012)
Filesystem volume name:   <none>
Last mounted on:          /
Filesystem UUID:          0b2cfa09-755d-4b14-b400-d7243f067351
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      has_journal ext_attr resize_inode dir_index filetype needs_recovery extent flex_bg sparse_super large_file huge_file uninit_bg dir_nlink extra_isize
Filesystem flags:         signed_directory_hash
Default mount options:    user_xattr acl
Filesystem state:         clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              6291456
Block count:              25140992
Reserved block count:     1257049
Free blocks:              22901463
Free inodes:              6113278
First block:              0
Block size:               4096
Fragment size:            4096
Reserved GDT blocks:      1018
Blocks per group:         32768
Fragments per group:      32768
Inodes per group:         8192
Inode blocks per group:   512
Flex block group size:    16
Filesystem created:       Fri Sep 25 22:56:57 2015
Last mount time:          Fri Dec 23 19:07:24 2016
Last write time:          Fri Dec 23 19:07:23 2016
Mount count:              24
Maximum mount count:      -1
Last checked:             Fri Sep 25 22:56:57 2015
Check interval:           0 (<none>)
Lifetime writes:          466 GB
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               256
Required extra isize:     28
Desired extra isize:      28
Journal inode:            8
First orphan inode:       1311740
Default directory hash:   half_md4
Directory Hash Seed:      99d17325-ca33-4ce4-b975-33d3e2a12ab5
Journal backup:           inode blocks

As you can see the values for space reserved for root user is zero:

Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)

Virtualmin is not providing the correct values as the other Linux commands do.

Can you change virtualmin code to provide the information with or without "Reserved block count"?

Those lines are just the UID and GID that blocks are reserved for.

The line that tells you how much is reserved is Reserved block count: 1257049

Messages 2 and 3 did not appear, probably they are banned.

Is it a way to ask System Information showing the space without the reserved blocks? It creates confusion, webmin user is not root, he should see the available space for him, not for him + root.

Currently, no - the space reserved for root is always excluded from the free space. This is admittedly confusing in some cases, but on the other hand makes it clear when space is no longer available for regular users.