Why does Fedora Show Wrong Disk Usage ?

asked 2017-11-19 11:37:41 -0600

Nomad gravatar image

updated 2017-11-19 12:33:43 -0600

I clicked right to show disk properties on nautilus but nautilus shows me wrong disk usage but not only nautilus do this. other programs from shows usage of disk like nautilus too. these are disk usage analyzer and Thunar. nautilus shows the properties of disk like the following picture.


in the picture, size of all files and folders totally 81 gb but disk usage 130 gb this is so nonsense. where are the files and folders of rest of the other size ?

df -h command output

Filesystem      Size  Used Avail Use% Mounted on
devtmpfs        3.9G     0  3.9G   0% /dev
tmpfs           3.9G  9.3M  3.9G   1% /dev/shm
tmpfs           3.9G  2.1M  3.9G   1% /run
tmpfs           3.9G     0  3.9G   0% /sys/fs/cgroup
/dev/sda3       153G   36G  110G  25% /
tmpfs           3.9G   92K  3.9G   1% /tmp
tmpfs           792M   16K  792M   1% /run/user/42
tmpfs           792M   72K  792M   1% /run/user/1000
/dev/sda2       578G  122G  427G  23% /mnt/data1
edit retag flag offensive close merge delete


My advise is to use df -h in the terminal.

aeperezt gravatar imageaeperezt ( 2017-11-19 12:17:24 -0600 )edit

I guess the discrepancy is due to some contents not readable. The size 130.7 GB used is derived from df which is accessible by all users. The sum of Contents 81.6 GB is rather calculated by scraping all files and as some files are not readable by the user you are using the GUI can not sum up all the GBs.

thomaswood gravatar imagethomaswood ( 2017-11-19 12:18:40 -0600 )edit

Looking at the output of df -h, You /mnt folder must have some other files inside and the data1 folder that holds the drive /dev/sda2 when you look at the disk Usage on /mnt will add all files and data inside /mnt that means you have a /dev/sda2 with 578G capacity plus other files. To confirm this please issue sudo du -h /mnt on the terminal

aeperezt gravatar imageaeperezt ( 2017-11-19 12:42:15 -0600 )edit

if I clean the disk with a cleaner program, can this problem be fixed ?

Nomad gravatar imageNomad ( 2017-11-19 13:57:09 -0600 )edit

Which disk, first do sudo ls -lah /mnt on the terminal it should list all files and folders in that dir.

aeperezt gravatar imageaeperezt ( 2017-11-19 14:11:30 -0600 )edit