SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#1 2010-12-17 04:04:00

rangzen
New Member
Registered: 2009-09-15
Posts: 8

False disk usage info

I am facing a strange issue, the disk usage information displayed by df command, thunar and pcmanfm are not identical. All of them show diffrent result for a same partation. Below is the screenshot which will shed some light on the issue. Thanks
2010121512924225191024x.png

Offline

Help fund CrunchBang, donate to the project!

#2 2010-12-17 13:08:14

cchhrriiss121212
#! Junkie
Registered: 2010-03-26
Posts: 357

Re: False disk usage info

I have the same discrepancy on my system, every source seems to be providing different estimates. My /home partition for example:
df -h - 125GB free out of 407GB
Gparted - 145GB free out of 413GB
Conky - 145GB free out of 407GB
Thunar - 124GB free out of 443GB
PCManFM - 134GB free out of 437GB

They could all be wrong for all I know.

Offline

#3 2014-06-28 15:50:52

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 13,409
Website

Re: False disk usage info

A man with two watches is never sure what time it is!

It depends on how each app reads data and what is displayed from the data it reads.

My drive (inxi)

 28 Jun 14 | 11:50:27 ~
    $ hdd
Drives:    HDD Total Size: 500.1GB (13.0% used) ID-1: /dev/sda model: WDC_WD5000AAKX size: 500.1GB
           Optical: /dev/sr0 model: HL-DT-ST DVDRAM GSA-H10L dev-links: cdrom,cdrw,dvd,dvdrw
           Features: speed: 48x multisession: yes audio: yes dvd: yes rw: cd-r,cd-rw,dvd-r,dvd-ram 
 
 28 Jun 14 | 11:50:51 ~
    $ 

But gparted tells me: 465.76GB

Now to ~/home/sector11

thunar - /home = 16.3GB Free - - - Used: 174.7MB
gparted - /home = 20GB  - - - Used: 2.69  Free: 17.31
pcmanfm - /home = 21.1GB Free 17.5GB
df -h - /home = 20G  2.4G   17G  13%  ----  20-2.4 = 17 ??? 13% used hmmmmmmmm

As far as conky goes - it even conflicts with itself:
2014_06_28_12_17_19_338x90_Sector11.jpg
19.7 - 16.3 = 3.4 not 2.38
and 82% + 12 % = 94%  - where is the other 6% ???

OK ... that was fun ... "du" will give you a hint:

 28 Jun 14 | 12:40:41 ~
    $ df -h /home
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda2        20G  2.4G   17G  13% /home
 
 28 Jun 14 | 12:40:57 ~
    $ du -d 0 -h /home/
du: cannot read directory `/home/.Trash-0': Permission denied
du: cannot read directory `/home/lost+found': Permission denied
2.3G	/home/
 
 28 Jun 14 | 12:41:07 ~
    $ 

A couple of links to point in the right direction:
Why command df and du reports different output?
ext4 partition size / free space discrepancies

My search box: Linux Why are partition sizes reported differently in different apps

Online

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.

Debian Logo