Re: du and df Used Space Inconsistent On Fresh Install
- From: Cameron Hutchison <lists@xxxxxxxx>
- Date: Fri, 31 Mar 2006 16:52:57 +1100
In list.debian.user you write:
I've just done a fresh install of Sarge 3.1r1 on an 8Gb partition on
an i386 machine here, basic packages only (no "tasks"), and on
checking space usage before proceeding I'm somewhat bemused by the
fact that du and df radically disagree on how much space has been used
so far.
In *single-user* mode :
# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda8 8354340 343808 7491140 5% /
# du -sk /
835383
df says ~340Mb used
du says ~830Mb used
that's quite a difference ....
Doinig a du from / is going to include all filesystems, not just
/dev/hda8. In particular /proc is going to be included and as the size
of /proc/kcore is equal to the amount of memory in the box, that could
add a sizable chunk to the difference.
Try:
# du -skx /
The -x restricts du to one file system.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- Follow-Ups:
- Re: du and df Used Space Inconsistent On Fresh Install
- From: Nick Boyce
- Re: du and df Used Space Inconsistent On Fresh Install
- References:
- du and df Used Space Inconsistent On Fresh Install
- From: Nick Boyce
- du and df Used Space Inconsistent On Fresh Install
- Prev by Date: Bacula and tcpwrappers on Debian
- Next by Date: Re: Is anyone using wake-up on A7N8X deluxe *with* 2.6.15 ?
- Previous by thread: Re: du and df Used Space Inconsistent On Fresh Install
- Next by thread: Re: du and df Used Space Inconsistent On Fresh Install
- Index(es):