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