Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] df and du difference
Date: Sat, 16 Aug 2008 23:59:35
Message-Id: 200808170158.35698.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] df and du difference by Paul Colquhoun
1 On Sunday 17 August 2008 01:18:21 Paul Colquhoun wrote:
2 > Actually, there is one more way to hide a file from du
3 >
4 > If there is a file in the /var directory *BEFORE* the
5 /var partition is
6 > mounted onto the directory, then du won't find it, but
7 df will know
8 > about the space it is using.
9 >
10 > You will probably need to boot from a live CD of some
11 sort to be able to
12 > umount the partitions and check the underlying
13 directory, but it might
14 > be worth it there is still space unaccounted for after a
15 reboot.
16
17 There's a much easier way. As root:
18
19 mount -o bind / /path/to/some/arb/dir
20
21 see man mount
22 --
23 alan dot mckinnon at gmail dot com

Replies

Subject Author
[gentoo-user] Re: df and du difference Platoali <platoali@×××××.com>