Gentoo Archives: gentoo-user

From: Neil Bothwick <neil@××××××××××.uk>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] df and du difference
Date: Sun, 17 Aug 2008 08:02:55
Message-Id: 20080817090136.1480cd45@digimed.co.uk
In Reply to: [gentoo-user] df and du difference by platoali@gmail.com
1 On Sat, 16 Aug 2008 10:20:49 +0430, platoali@×××××.com wrote:
2
3 > the difference between du and df is about 640 - 188 = 452 MB. and "df"
4 > is showing that my root is full 2.4 times more than "du".
5
6 There is another possibility that no one seems t have mentioned. You may
7 have files hidden inside a mount point that du is unable to see. To test
8
9 mkdir /mnt/tmp
10 mount --bind / /mnt/tmp
11
12 then run your du commands over /mnt/tmp.
13
14
15 --
16 Neil Bothwick
17
18 "There are two ways of constructing a software design: One way is to make
19 it so simple that there are obviously no deficiencies, and the other way
20 is to make it so complicated that there are no obvious deficiencies.
21 The first method is far more difficult" -C.A.R. Hoare
22 Neil Bothwick

Attachments

File name MIME type
signature.asc application/pgp-signature