Gentoo Archives: gentoo-user

From: platoali@×××××.com
To: gentoo-user@l.g.o
Subject: [gentoo-user] df and du difference
Date: Sat, 16 Aug 2008 05:50:59
Message-Id: 200808161020.49643.platoali@gmail.com
1 Hi,
2
3 I've a strange problem with my root partion:
4
5 # du -hxs /
6 188M /
7
8
9 and
10
11 # du -hx --max-dep=1 /
12 24M /root
13 4.0K /cdrom
14 19M /etc
15 76K /.nvclock
16 12K /media
17 100K /chroot
18 4.0K /home
19 4.0K /usr
20 1.9M /package
21 5.5M /bin
22 4.0K /windows2
23 125M /lib
24 4.0K /service
25 4.0K /opt
26 4.0K /var
27 4.0K /command
28 12M /sbin
29 4.0K /tmp
30 0 /dev
31 1.3M /lost+found
32 0 /proc
33 4.0K /boot
34 4.0K /mnt
35 4.0K /windows
36 40K /.subversion
37 0 /sys
38 4.0K /boot2
39 188M /
40
41
42 but when I run df:
43 df -h
44 Filesystem Size Used Avail Use% Mounted on
45 /dev/sda3 2.0G 640M 1.3G 35% /
46 .....
47
48
49
50 the difference between du and df is about 640 - 188 = 452 MB. and "df" is
51 showing that my root is full 2.4 times more than "du".
52
53 which one is the correct one? I've another server that this difference is
54 about 7 GiG and on that server root is 80% full. The type of partition is
55 ext3.
56
57 Do others have this kind of inconsistancy on their systems?
58
59 Best regards
60 Platoali

Replies

Subject Author
Re: [gentoo-user] df and du difference Volker Armin Hemmann <volker.armin.hemmann@××××××××××××.de>
Re: [gentoo-user] df and du difference "Sebastian Günther" <samson@××××××××××××××××.de>
Re: [gentoo-user] df and du difference Ward Poelmans <wpoely86@×××××.com>
Re: [gentoo-user] df and du difference Neil Bothwick <neil@××××××××××.uk>