Daniel D Jones wrote: > root@etch:/# du --max-depth=1 -h > 1.7G ./var > 32K ./tmp > 4.0K ./selinux > 16K ./lost+found > 16M ./boot > 852K ./home > 0 ./sys > 4.0K ./initrd > 22M ./etc > 81M ./lib > 515M ./proc > 6.3G ./root > 3.3M ./sbin > 3.7M ./bin > 8.0K ./media > 8.0K ./mnt > 208K ./dev > 4.0K ./opt > 1.3G ./usr > 4.0K ./srv > 9.7G . > > > root@etch:/# df -H > Filesystem Size Used Avail Use% Mounted on > /dev/hda3 18G 17G 68M 100% / > tmpfs 265M 0 265M 0% /lib/init/rw > udev 11M 54k 11M 1% /dev > tmpfs 265M 0 265M 0% /dev/shm > /dev/hda2 192M 22M 160M 13% /boot > > Why is du telling me that I'm using 9.7G of the disk while df says I'm using > over 17G? > > > _Could_ be slack space. I'm not quite convinced mind you. However, iirc ext3 uses 4k blocks, so if you have an average file size of 2k, each file will take up 4k anyway. Plus, if a file is 4097 bytes according to stat(), it will take up 8192 bytes of space. Not to say I'm definitely right, but it's a working theory.
Description: OpenPGP digital signature