Reading Thunar Free Space

If I add up the first three items of dutree, I get close to the usage returned by inxi, that’s approx 15GB, leaving (58-15=) 43 of free space. Yet Thunar shows 39. I wonder where the discrepancy comes from, and also why /var takes up so much and if there is a way to trim it.

# inxi -Fxz | grep -A2 Drives: 
Drives:
  Local Storage: total: 58.24 GiB used: 14.93 GiB (25.6%)
  ID-1: /dev/mmcblk1 vendor: Hynix model: hC8aP size: 58.24 GiB
# dutree -s /
Couldn't read gvfs (PermissionDenied)
[ / 128.01 TiB ]
β”œβ”€ proc                                β”‚ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ”‚  99%    128.00 TiB
β”œβ”€ usr                                 β”‚                                                                                                           β”‚   0%      6.15 GiB
β”œβ”€ var                                 β”‚                                                                                                           β”‚   0%      5.45 GiB
β”œβ”€ home                                β”‚                                                                                                           β”‚   0%      2.67 GiB
β”œβ”€ sys                                 β”‚                                                                                                           β”‚   0%    656.52 MiB
β”œβ”€ opt                                 β”‚                                                                                                           β”‚   0%    214.54 MiB
β”œβ”€ boot                                β”‚                                                                                                           β”‚   0%    150.25 MiB
β”œβ”€ tmp                                 β”‚                                                                                                           β”‚   0%      9.32 MiB
β”œβ”€ etc                                 β”‚                                                                                                           β”‚   0%      7.61 MiB
└─ <aggregated>                        β”‚                                                                                                           β”‚   0%    170.33 KiB

What filesystem are you using?

It could be several things. flatpaks or other containerized formats, VMs or other containers and/or the pacman cache. You can clean the pacman cache with the paccache command. sudo paccache -r



# df -Th
Filesystem     Type      Size  Used Avail Use% Mounted on
dev            devtmpfs  1.9G     0  1.9G   0% /dev
run            tmpfs     1.9G  1.6M  1.9G   1% /run
/dev/dm-0      ext4       57G   15G   39G  28% /
tmpfs          tmpfs     1.9G     0  1.9G   0% /dev/shm
tmpfs          tmpfs     1.9G  9.9M  1.9G   1% /tmp
/dev/mmcblk1p1 vfat      300M  488K  299M   1% /boot/efi
tmpfs          tmpfs     375M   56K  375M   1% /run/user/1000

ext4 reserves space by default. That could be one of the reasons for the difference.

Doesn’t seem like pac cach is the β€œculprit” for /var’s +5GB.

# paccache -r

==> finished: 10 packages removed (disk space saved: 200.72 MiB)
# dutree -s /
Couldn't read gvfs (PermissionDenied)
[ / 128.01 TiB ]
β”œβ”€ proc                   β”‚ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ”‚  99%    128.00 TiB
β”œβ”€ usr                    β”‚                                                     β”‚   0%      6.22 GiB
β”œβ”€ var                    β”‚                                                     β”‚   0%      5.27 GiB
β”œβ”€ home                   β”‚                                                     β”‚   0%      2.67 GiB
β”œβ”€ sys                    β”‚                                                     β”‚   0%    656.60 MiB
β”œβ”€ opt                    β”‚                                                     β”‚   0%    214.54 MiB
β”œβ”€ boot                   β”‚                                                     β”‚   0%    150.25 MiB
β”œβ”€ tmp                    β”‚                                                     β”‚   0%      9.32 MiB
β”œβ”€ etc                    β”‚                                                     β”‚   0%      7.61 MiB
β”œβ”€ root                   β”‚                                                     β”‚   0%      1.29 MiB
└─ <aggregated>           β”‚                                                     β”‚   0%    142.79 KiB

You can use filelight or some similar tool to dig into exactly what is using space in /var

Interestingly pacache is big.

# dutree -s /var
[ var 5.27 GiB ]
β”œβ”€ cache                  β”‚ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ”‚  51%      2.73 GiB
β”œβ”€ lib                    β”‚             β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ”‚  40%      2.16 GiB
β”œβ”€ log                    β”‚                                               β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ”‚   7%    393.18 MiB
└─ <aggregated>           β”‚                                                     β”‚   0%     86.85 KiB
# dutree -s /var/cache
[ cache 2.73 GiB ]
β”œβ”€ pacman                 β”‚ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ”‚  99%      2.73 GiB
β”œβ”€ man                    β”‚                                                     β”‚   0%      5.06 MiB
β”œβ”€ fontconfig             β”‚                                                     β”‚   0%      1.24 MiB
└─ <aggregated>           β”‚                                                     β”‚   0%     96.66 KiB

Break down /var/lib one more level.

paccache -r removes all but the most recent 3 versions of each package. You can keep fewer versions if you want to.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.