You are not logged in.

#1 2009-06-13 06:46:42

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

kde 4: Disk Space widget: curious discrepancy

Hi,

Different utilities show different disk usage:

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda2              29G  8.0G   20G  29% /
none                  474M   12K  474M   1% /dev/shm
/dev/sda3             261G  247G  971M 100% /home

Disk Space widget:

Home: 14.2 GiB
Root: 20.9 GiB

df results look more credible smile

Curiously, Root usage checks, more or less. Could it be something more subtle than a mere Disk Space widget bug?

Last edited by Llama (2009-06-13 06:49:55)

Offline

#2 2009-06-13 09:07:05

somairotevoli
Member
Registered: 2006-05-23
Posts: 335

Re: kde 4: Disk Space widget: curious discrepancy

29G - 8G gives you 20.9GiB for root
261G -247G gives you 14.2 GiB for home

Offline

#3 2009-06-13 09:15:36

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: kde 4: Disk Space widget: curious discrepancy

somairotevoli wrote:

29G - 8G gives you 20.9GiB for root
261G -247G gives you 14.2 GiB for home

big_smile:D

Which indicator is useless, then? df or Disk Space?

Offline

#4 2009-06-13 10:00:56

R00KIE
Forum Fellow
From: Between a computer and a chair
Registered: 2008-09-14
Posts: 4,734

Re: kde 4: Disk Space widget: curious discrepancy

Maybe both are working well (you need to know the math and conditions each program uses).
I would go with df though, if I'm not wrong it takes into account the reserved space for root that each partition usually has. Because a normal user can't access it it doesn't count as free space.

Maybe the Disk Space widget doesn't take that into account and gives you different results.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

#5 2009-06-13 11:18:38

vi3dr0
Member
From: Poland
Registered: 2009-03-22
Posts: 208

Re: kde 4: Disk Space widget: curious discrepancy

Use "command watch" widget with df, and you're done. Tweak it with awk to get some prettier look if you wish wink


Thinkpad T61p : T7700 | 4GB RAM | nVidia FX 570M | Intel 4965
Arch64 @ Openbox

Offline

#6 2009-06-13 14:57:33

Llama
Banned
From: St.-Petersburg, Russia
Registered: 2008-03-03
Posts: 1,379

Re: kde 4: Disk Space widget: curious discrepancy

R00KIE wrote:

Maybe both are working well (you need to know the math and conditions each program uses).
I would go with df though, if I'm not wrong it takes into account the reserved space for root that each partition usually has. Because a normal user can't access it it doesn't count as free space.

Maybe the Disk Space widget doesn't take that into account and gives you different results.

You mean, in the range of gigabytes? Sounds funny.

Offline

Board footer

Powered by FluxBB