public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] df  and du  difference
@ 2008-08-16  5:50 platoali
  2008-08-16  6:41 ` Volker Armin Hemmann
                   ` (3 more replies)
  0 siblings, 4 replies; 20+ messages in thread
From: platoali @ 2008-08-16  5:50 UTC (permalink / raw
  To: gentoo-user

Hi, 

I've a strange problem with  my root partion:

 # du -hxs /
188M    /


and 

# du -hx --max-dep=1 /
24M     /root
4.0K    /cdrom
19M     /etc
76K     /.nvclock
12K     /media
100K    /chroot
4.0K    /home
4.0K    /usr
1.9M    /package
5.5M    /bin
4.0K    /windows2
125M    /lib
4.0K    /service
4.0K    /opt
4.0K    /var
4.0K    /command
12M     /sbin
4.0K    /tmp
0       /dev
1.3M    /lost+found
0       /proc
4.0K    /boot
4.0K    /mnt
4.0K    /windows
40K     /.subversion
0       /sys
4.0K    /boot2
188M    /


but when I run df:
df -h               
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda3             2.0G  640M  1.3G  35% /
.....



the difference between du and df is about 640 - 188 = 452 MB. and "df" is 
showing  that my root is full  2.4 times more than "du".

which one is the correct one? I've another server that this difference is 
about 7 GiG and on that server root is 80% full.  The type of partition is 
ext3.

Do others have this kind of inconsistancy on their systems?

Best regards
Platoali



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2008-08-18 22:05 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-16  5:50 [gentoo-user] df and du difference platoali
2008-08-16  6:41 ` Volker Armin Hemmann
2008-08-16  6:52 ` Sebastian Günther
2008-08-16  8:07   ` [gentoo-user] " platoali
2008-08-16  8:30     ` Sebastian Günther
2008-08-16  9:13       ` Platoali
2008-08-16  9:19         ` Dale
2008-08-16  9:47           ` Francesco Talamona
2008-08-16 10:09         ` Sebastian Günther
2008-08-16 11:12           ` Platoali
2008-08-16 12:49             ` Sebastian Günther
2008-08-16  9:01     ` Dale
2008-08-16  9:56 ` [gentoo-user] " Ward Poelmans
2008-08-16 10:21   ` [gentoo-user] " Platoali
2008-08-18 22:05     ` kashani
2008-08-16 23:18   ` [gentoo-user] " Paul Colquhoun
2008-08-16 23:58     ` Alan McKinnon
2008-08-18  5:51       ` [gentoo-user] " Platoali
2008-08-17 14:36     ` [gentoo-user] " Norberto Bensa
2008-08-17  8:01 ` Neil Bothwick

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox