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 |