Space used by system - discrepancies

Chat about anything related to Linux Mint
Forum rules
Do not post support questions here. Before you post read the forum rules. Topics in this forum are automatically closed 6 months after creation.
Locked
LanceM

Space used by system - discrepancies

Post by LanceM »

Recently there was a thread about system space used. Mods removed it because it was a spammer posting a seemingly legit question. At any rate for a long time I noticed a discrepancy in the values given by various methods. Baobab, closely matches any of the various commands like

Code: Select all

df
and

Code: Select all

du
however they do not match Gparted and by a wide margin Disks. I would be interested to know which is closest to accurate. I can post some examples if merited.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
ricardogroetaers
Level 6
Level 6
Posts: 1368
Joined: Sat Oct 27, 2018 3:06 am
Location: Rio de Janeiro, Brasil

Re: Space used by system - discrepancies

Post by ricardogroetaers »

Each program performs a different task and uses a different measurement system.

Roughly speaking, nothing technical:
du -> displays information about the space used by directories.
df -> displays information about free and occupied space of system partitions.
Gparted, Disks or other partitioning program -> displays the occupied and free space on the device media.
LanceM

Re: Space used by system - discrepancies

Post by LanceM »

Code: Select all

df -Th
16GB

Code: Select all

df -H
18GB

Code: Select all

sudo du -ahx / | sort -h
12.9GB
Gparted 15.9GB
Disk Usage Analyzer (Baobab) 13GB
Mint 20.1 Cinnamon
Simple install efi and / just 2 partitions.
Locked

Return to “Chat about Linux Mint”