You are not logged in.

#1 2009-08-13 00:00:19

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

differences in partition disc usage

Basically, the output of df -h for my /var differs from an ncdu -x /var and I can't figure out why.  Seems to be a 146 meg discrepancy which I can't explain.

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda6             7.6G  351M  6.9G   5% /var
ncdu -x /var
--- /var ------------------------------------------------------------------------------------------------
  122.9MB  /log                                                                                          
   76.8MB  /lib
    5.3MB  /cache
  160.0kB  /run
   80.0kB  /spool
e  16.0kB  /lost+found
   12.0kB  /tmp
    4.0kB  /games
e   4.0kB  /local
e   4.0kB  /lock
e   4.0kB  /mail
e   4.0kB  /opt

Total disk usage: 205.3MB  Apparent size: 166.1MB  Items: 16564

Last edited by graysky (2009-08-13 00:01:22)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#2 2009-08-13 00:06:15

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: differences in partition disc usage

Internal filesystem stuff takes space.

What filesystem do you use?

Offline

#3 2009-08-13 00:10:07

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: differences in partition disc usage

It's ext4.. 146 megs of metadata??  Come to think of it.  Gparted showed 146 megs used right after I formatted it.  I thought it was an error and ran fsck on it but got a report of no errors so it must be real.  I just can't explain it!

Last edited by graysky (2009-08-13 00:11:15)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#4 2009-08-13 00:29:00

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: differences in partition disc usage

Yeah, I presume it's journal.

Offline

#5 2009-08-13 08:15:50

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,595
Website

Re: differences in partition disc usage

Wow.  146 of metadata for a freshly formatted [empty] partition seems odd to me... hmm


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#6 2009-08-13 21:17:26

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

Re: differences in partition disc usage

I guess it's not odd, it's like lucke says, it is filesystem related, file allocation tables, journal and whatnot take space wink
As far as I know all filesystems do this, some more than others but all do this.


R00KIE
Tm90aGluZyB0byBzZWUgaGVyZSwgbW92ZSBhbG9uZy4K

Offline

Board footer

Powered by FluxBB